changeset 6620:7230e5920911

[gaim-migrate @ 7144] Patch from Ari Pollak to bring the notify plugin's signals into late August of 2003. Thanks, Ari. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Mon, 25 Aug 2003 00:39:39 +0000
parents 61d516a3d4a8
children 42fdf16f1dad
files plugins/notify.c
diffstat 1 files changed, 17 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }