aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/purple/purple.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-05-08 01:16:37 -0300
committerdequis <dx@dxzone.com.ar>2015-05-28 02:26:30 -0300
commit0864a524c9fd1184874d550216beb49f6a0bef55 (patch)
treea2a19d6787dd8b7b479fa43378994233aad839e1 /protocols/purple/purple.c
parentfaeb521e66d825e68eb7f9eef8f32ddabbfd9c49 (diff)
imcb_notify_email: change parameters to take a format string
Saves some messing with g_strdup_printf for the callers, and flags/sent_at weren't used anyway. Also check if the mail_notifications setting is enabled
Diffstat (limited to 'protocols/purple/purple.c')
-rw-r--r--protocols/purple/purple.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c
index 42a5448c..ab958891 100644
--- a/protocols/purple/purple.c
+++ b/protocols/purple/purple.c
@@ -1260,10 +1260,8 @@ static void *prplcb_notify_email(PurpleConnection *gc, const char *subject, cons
const char *to, const char *url)
{
struct im_connection *ic = purple_ic_by_gc(gc);
- char *msg = g_strdup_printf("Received e-mail from %s for %s: %s <%s>", from, to, subject, url);
- imcb_notify_email(ic, set_getstr(&ic->acc->set, "notify_handle"), msg, 0, 0);
- g_free(msg);
+ imcb_notify_email(ic, "Received e-mail from %s for %s: %s <%s>", from, to, subject, url);
return NULL;
}