diff plugins/signals-test.c @ 9587:5e1c76f3d232

[gaim-migrate @ 10430] " These 2 patches (one or the other, they are mutually exclusive) fix a slight bug in the gaim_conv_chat_add_user (it was not emitting the user's flags in the chat joining/joined signals). The 1st patch (gaim-0.81cvs-chat-join-signal-fix.patch) just fixes that bug, and nothing else. The 2nd patch (gaim-0.81cvs-chat-join-signal-fix-and-change.patch) also changes the joining/leaving signals to boolean signals to allow a plugin to optionally prevent the display of users joining and leaving chats. This would allow us to respond to "How do I turn off the display of users joinging and leaving a chat?" with "Write a plugin", instead of "You can't"." --Stu Tomlinson - nosnilmot should we be updating the ChangeLog.API? committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 24 Jul 2004 15:26:09 +0000
parents 8b2451878e26
children a9fb4493ae22
line wrap: on
line diff
--- a/plugins/signals-test.c	Sat Jul 24 15:22:19 2004 +0000
+++ b/plugins/signals-test.c	Sat Jul 24 15:26:09 2004 +0000
@@ -344,12 +344,14 @@
 					gaim_conversation_get_name(conv));
 }
 
-static void
+static gboolean
 chat_buddy_joining_cb(GaimConversation *conv, const char *user,
 					  GaimConvChatBuddyFlags flags, void *data)
 {
 	gaim_debug_misc("signals test", "chat-buddy-joining (%s, %s, %d)\n",
 					gaim_conversation_get_name(conv), user, flags);
+
+	return FALSE;
 }
 
 static void
@@ -368,12 +370,14 @@
 					gaim_conversation_get_name(conv), user, oldflags, newflags);
 }
 
-static void
+static gboolean
 chat_buddy_leaving_cb(GaimConversation *conv, const char *user,
 					  const char *reason, void *data)
 {
 	gaim_debug_misc("signals test", "chat-buddy-leaving (%s, %s, %s)\n",
 					gaim_conversation_get_name(conv), user, reason);
+
+	return FALSE;
 }
 
 static void