# HG changeset patch # User Ethan Blanton # Date 1061771979 0 # Node ID 7230e5920911143489ee7deaa64347f5c989da59 # Parent 61d516a3d4a8c920fc62d182b079618f3a52c1ed [gaim-migrate @ 7144] Patch from Ari Pollak to bring the notify plugin's signals into late August of 2003. Thanks, Ari. committer: Tailor Script diff -r 61d516a3d4a8 -r 7230e5920911 plugins/notify.c --- a/plugins/notify.c Sun Aug 24 22:00:05 2003 +0000 +++ b/plugins/notify.c Mon Aug 25 00:39:39 2003 +0000 @@ -200,31 +200,40 @@ } static gboolean -chat_recv_im(GaimAccount *account, GaimConversation *conv, char **who, - char **text) +chat_recv_im(GaimAccount *account, char **who, char **text, int id, void *m) { + GaimConversation *conv = gaim_find_chat( + gaim_account_get_connection(account), + id); if (conv) notify(conv); return FALSE; } -static void chat_sent_im(GaimConversation *c, char **text) { - if (c) - unnotify(c); +static void chat_sent_im(GaimAccount *account, char *text, int id, void *m) { + GaimConversation *conv = gaim_find_chat( + gaim_account_get_connection(account), + id); + + if (conv) + unnotify(conv); } static gboolean -im_recv_im(GaimAccount *account, GaimConversation *conv, char **who, - char **what, int *flags, void *m) +im_recv_im(GaimAccount *account, char **who, char **what, int *flags, void *m) { + GaimConversation *conv = gaim_find_conversation_with_account(*who, account); + if (conv) notify(conv); return FALSE; } -static void im_sent_im(GaimConversation *conv, char **what, void *m) { +static void im_sent_im(GaimAccount *account, char *who, void *m) { + GaimConversation *conv = gaim_find_conversation_with_account(who, account); + if (conv) unnotify(conv); }