Mercurial > pidgin
comparison src/protocols/yahoo/yahoochat.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 | 68368058ee03 |
children | e74eb0d11f86 |
comparison
equal
deleted
inserted
replaced
9845:7c459857f1c2 | 9846:c28d5b45624e |
---|---|
74 GList *i; | 74 GList *i; |
75 | 75 |
76 for (i = newusers; i; i = i->next) { | 76 for (i = newusers; i; i = i->next) { |
77 if (gaim_conv_chat_find_user(chat, i->data)) | 77 if (gaim_conv_chat_find_user(chat, i->data)) |
78 continue; | 78 continue; |
79 gaim_conv_chat_add_user(chat, i->data, NULL, GAIM_CBFLAGS_NONE); | 79 gaim_conv_chat_add_user(chat, i->data, NULL, GAIM_CBFLAGS_NONE, TRUE); |
80 } | 80 } |
81 } | 81 } |
82 | 82 |
83 void yahoo_chat_add_user(GaimConvChat *chat, const char *user, const char *reason) | 83 void yahoo_chat_add_user(GaimConvChat *chat, const char *user, const char *reason) |
84 { | 84 { |
85 if (gaim_conv_chat_find_user(chat, user)) | 85 if (gaim_conv_chat_find_user(chat, user)) |
86 return; | 86 return; |
87 | 87 |
88 gaim_conv_chat_add_user(chat, user, reason, GAIM_CBFLAGS_NONE); | 88 gaim_conv_chat_add_user(chat, user, reason, GAIM_CBFLAGS_NONE, TRUE); |
89 } | 89 } |
90 | 90 |
91 static GaimConversation *yahoo_find_conference(GaimConnection *gc, const char *name) | 91 static GaimConversation *yahoo_find_conference(GaimConnection *gc, const char *name) |
92 { | 92 { |
93 struct yahoo_data *yd; | 93 struct yahoo_data *yd; |
661 if (memarr) { | 661 if (memarr) { |
662 for(i = 0 ; memarr[i]; i++) { | 662 for(i = 0 ; memarr[i]; i++) { |
663 if (!strcmp(memarr[i], "") || !strcmp(memarr[i], dn)) | 663 if (!strcmp(memarr[i], "") || !strcmp(memarr[i], dn)) |
664 continue; | 664 continue; |
665 yahoo_packet_hash(pkt, 3, memarr[i]); | 665 yahoo_packet_hash(pkt, 3, memarr[i]); |
666 gaim_conv_chat_add_user(GAIM_CONV_CHAT(c), memarr[i], NULL, GAIM_CBFLAGS_NONE); | 666 gaim_conv_chat_add_user(GAIM_CONV_CHAT(c), memarr[i], NULL, GAIM_CBFLAGS_NONE, TRUE); |
667 } | 667 } |
668 } | 668 } |
669 yahoo_send_packet(yd, pkt); | 669 yahoo_send_packet(yd, pkt); |
670 | 670 |
671 yahoo_packet_free(pkt); | 671 yahoo_packet_free(pkt); |