Changeset 0864a52 for protocols/jabber


Ignore:
Timestamp:
2015-05-28T05:26:30Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
b38f655
Parents:
faeb521
git-author:
dequis <dx@…> (08-05-15 04:16:37)
git-committer:
dequis <dx@…> (28-05-15 05:26:30)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/iq.c

    rfaeb521 r0864a52  
    810810                char *subject = "<no subject>";
    811811                char *sender = "<no sender>";
    812                 char *msg = NULL;
    813812                guint64 t_time;
    814813
     
    828827                }
    829828
    830                 msg = g_strdup_printf("New mail from %s: %s", sender, subject);
    831 
    832                 imcb_notify_email(ic, set_getstr(&ic->acc->set, "notify_handle"), msg, 0, 0);
     829                imcb_notify_email(ic, "New mail from %s: %s", sender, subject);
    833830
    834831                c = c->next;
    835                 g_free(msg);
    836832        }
    837833
Note: See TracChangeset for help on using the changeset viewer.