# HG changeset patch # User Tim Ringenbach # Date 1090477356 0 # Node ID d39eecc24a591f69118d97611877c8c45851b3fc # Parent fd32ae5ee37346f812014fd35ea62cec8cacd0e2 [gaim-migrate @ 10418] grin says he's tired of being flooded with fake conference invite declines. committer: Tailor Script diff -r fd32ae5ee373 -r d39eecc24a59 src/protocols/yahoo/yahoochat.c --- 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); } -