Mercurial > pidgin.yaz
changeset 9575:d39eecc24a59
[gaim-migrate @ 10418]
grin says he's tired of being flooded with fake conference invite declines.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Thu, 22 Jul 2004 06:22:36 +0000 |
parents | fd32ae5ee373 |
children | 1a9157d70ec0 |
files | src/protocols/yahoo/yahoochat.c |
diffstat | 1 files changed, 12 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoochat.c Thu Jul 22 03:43:59 2004 +0000 +++ b/src/protocols/yahoo/yahoochat.c Thu Jul 22 06:22:36 2004 +0000 @@ -186,12 +186,19 @@ } if (who && room) { - char *tmp; + GaimConversation *conv; + + conv = gaim_find_conversation_with_account(room, gc->account); + /* make sure we're in the room before we process a decline message for it */ + if(conv && gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) { + char *tmp; - tmp = g_strdup_printf(_("%s declined your conference invitation to room \"%s\" because \"%s\"."), - who, room, msg?msg:""); - gaim_notify_info(gc, NULL, _("Invitation Rejected"), tmp); - g_free(tmp); + tmp = g_strdup_printf(_("%s declined your conference invitation to room \"%s\" because \"%s\"."), + who, room, msg?msg:""); + gaim_notify_info(gc, NULL, _("Invitation Rejected"), tmp); + g_free(tmp); + } + g_free(room); if (msg) g_free(msg); @@ -1459,4 +1466,3 @@ gaim_roomlist_set_in_progress(list, TRUE); gaim_roomlist_ref(list); } -