From 0864a524c9fd1184874d550216beb49f6a0bef55 Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 8 May 2015 01:16:37 -0300 Subject: 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 --- protocols/bee.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'protocols/bee.h') diff --git a/protocols/bee.h b/protocols/bee.h index 1d87f743..afe22c95 100644 --- a/protocols/bee.h +++ b/protocols/bee.h @@ -155,8 +155,7 @@ G_MODULE_EXPORT void imcb_buddy_times(struct im_connection *ic, const char *hand /* Call when a handle says something. 'flags' and 'sent_at may be just 0. */ G_MODULE_EXPORT void imcb_buddy_msg(struct im_connection *ic, const char *handle, const char *msg, guint32 flags, time_t sent_at); -G_MODULE_EXPORT void imcb_notify_email(struct im_connection *ic, const char *handle, char *msg, guint32 flags, - time_t sent_at); +G_MODULE_EXPORT void imcb_notify_email(struct im_connection *ic, char *format, ...) G_GNUC_PRINTF(2, 3); /* bee_chat.c */ /* These two functions are to create a group chat. -- cgit v1.2.3