comparison plugins/timestamp.c @ 10104:60db14d54914

[gaim-migrate @ 11131] "This patch that makes received-im-msg and received-chat-msg signals correspond with each other. My motivation was to add flags to received-chat-msg, but I also added conv to received-im-msg to make the signals match each other." -- Nathan Fredrickson (noif) I also updated the receiving-im-msg and receiving-chat-msg signals to match. Now I can finally reject patch 909745 with "this should be a plugin", which I've wanted to be able to say for a while. Yay :) committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 16 Oct 2004 15:07:22 +0000
parents f8e395a054e2
children c432b927b0b1
comparison
equal deleted inserted replaced
10103:a9521c791afe 10104:60db14d54914
91 return FALSE; 91 return FALSE;
92 } 92 }
93 93
94 static gboolean 94 static gboolean
95 timestamp_receiving_msg(GaimAccount *account, char **sender, char **buffer, 95 timestamp_receiving_msg(GaimAccount *account, char **sender, char **buffer,
96 int *flags, void *data) 96 GaimConversation *conv, int *flags, void *data)
97 { 97 {
98 GaimConversation* conv; 98 g_return_val_if_fail(conv != NULL, FALSE);
99 99
100 conv = gaim_find_conversation_with_account(*sender, account); 100 return timestamp_displaying_conv_msg(account, conv, buffer, data);
101 if (conv != NULL)
102 return timestamp_displaying_conv_msg(account, conv, buffer, data);
103 return FALSE;
104 } 101 }
105 102
106 103
107 static void timestamp_new_convo(GaimConversation *conv) 104 static void timestamp_new_convo(GaimConversation *conv)
108 { 105 {