diff src/conversation.c @ 9846:c28d5b45624e

[gaim-migrate @ 10724] A patch from Nathan Fredrickson that should make Gaim not play sounds for people joining chats when you join chat. Um, his explanation is better: http://sourceforge.net/tracker/index.php?func=detail&aid=1008904&group_id=235&atid=300235 committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 24 Aug 2004 04:12:28 +0000
parents 94c643a77913
children ebca3bbc6719
line wrap: on
line diff
--- a/src/conversation.c	Tue Aug 24 01:26:54 2004 +0000
+++ b/src/conversation.c	Tue Aug 24 04:12:28 2004 +0000
@@ -1923,7 +1923,7 @@
 
 void
 gaim_conv_chat_add_user(GaimConvChat *chat, const char *user, const char *extra_msg,
-						GaimConvChatBuddyFlags flags)
+						GaimConvChatBuddyFlags flags, gboolean new_arrival)
 {
 	GaimConversation *conv;
 	GaimConversationUiOps *ops;
@@ -1946,9 +1946,9 @@
 		g_list_append(gaim_conv_chat_get_users(chat), cb));
 
 	if (ops != NULL && ops->chat_add_user != NULL)
-		ops->chat_add_user(conv, user);
-
-	if (!quiet) {
+		ops->chat_add_user(conv, user, new_arrival);
+
+	if (!quiet && new_arrival) {
 		if (extra_msg == NULL)
 			g_snprintf(tmp, sizeof(tmp), _("%s entered the room."), user);
 		else