diff 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
line wrap: on
line diff
--- a/plugins/timestamp.c	Sat Oct 16 01:05:40 2004 +0000
+++ b/plugins/timestamp.c	Sat Oct 16 15:07:22 2004 +0000
@@ -93,14 +93,11 @@
 
 static gboolean
 timestamp_receiving_msg(GaimAccount *account, char **sender, char **buffer,
-				   int *flags, void *data)
+						GaimConversation *conv, int *flags, void *data)
 {
-	GaimConversation* conv;
-	
-	conv = gaim_find_conversation_with_account(*sender, account);
-	if (conv != NULL)
-		return timestamp_displaying_conv_msg(account, conv, buffer, data);
-	return FALSE;
+	g_return_val_if_fail(conv != NULL, FALSE);
+
+	return timestamp_displaying_conv_msg(account, conv, buffer, data);
 }