comparison 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
comparison
equal deleted inserted replaced
9845:7c459857f1c2 9846:c28d5b45624e
1921 common_send(gaim_conv_chat_get_conversation(chat), message); 1921 common_send(gaim_conv_chat_get_conversation(chat), message);
1922 } 1922 }
1923 1923
1924 void 1924 void
1925 gaim_conv_chat_add_user(GaimConvChat *chat, const char *user, const char *extra_msg, 1925 gaim_conv_chat_add_user(GaimConvChat *chat, const char *user, const char *extra_msg,
1926 GaimConvChatBuddyFlags flags) 1926 GaimConvChatBuddyFlags flags, gboolean new_arrival)
1927 { 1927 {
1928 GaimConversation *conv; 1928 GaimConversation *conv;
1929 GaimConversationUiOps *ops; 1929 GaimConversationUiOps *ops;
1930 GaimConvChatBuddy *cb; 1930 GaimConvChatBuddy *cb;
1931 char tmp[BUF_LONG]; 1931 char tmp[BUF_LONG];
1944 1944
1945 gaim_conv_chat_set_users(chat, 1945 gaim_conv_chat_set_users(chat,
1946 g_list_append(gaim_conv_chat_get_users(chat), cb)); 1946 g_list_append(gaim_conv_chat_get_users(chat), cb));
1947 1947
1948 if (ops != NULL && ops->chat_add_user != NULL) 1948 if (ops != NULL && ops->chat_add_user != NULL)
1949 ops->chat_add_user(conv, user); 1949 ops->chat_add_user(conv, user, new_arrival);
1950 1950
1951 if (!quiet) { 1951 if (!quiet && new_arrival) {
1952 if (extra_msg == NULL) 1952 if (extra_msg == NULL)
1953 g_snprintf(tmp, sizeof(tmp), _("%s entered the room."), user); 1953 g_snprintf(tmp, sizeof(tmp), _("%s entered the room."), user);
1954 else 1954 else
1955 g_snprintf(tmp, sizeof(tmp), 1955 g_snprintf(tmp, sizeof(tmp),
1956 _("%s [<I>%s</I>] entered the room."), 1956 _("%s [<I>%s</I>] entered the room."),