changeset 32193:7d08ac041588

Suppress error spews when we've left an IRC channel but the window is open. My take on a patch from Florian Quze to fix yet another IRC WHO problem.
author Ethan Blanton <elb@pidgin.im>
date Tue, 12 Jul 2011 19:49:44 +0000
parents f71b6a715cc7
children 462c19eb31d8
files libpurple/protocols/irc/irc.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/irc/irc.c	Sun Jul 10 13:11:36 2011 +0000
+++ b/libpurple/protocols/irc/irc.c	Tue Jul 12 19:49:44 2011 +0000
@@ -251,7 +251,9 @@
 
 static void irc_who_channel(PurpleConversation *conv, struct irc_conn *irc)
 {
-	if (purple_conversation_get_account(conv) == irc->account && purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_CHAT) {
+	if (purple_conversation_get_account(conv) == irc->account
+	    && purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_CHAT
+	    && !purple_conv_chat_has_left(PURPLE_CONV_CHAT(conv))) {
 		char *buf = irc_format(irc, "vc", "WHO", purple_conversation_get_name(conv));
 		
 		purple_debug(PURPLE_DEBUG_INFO, "irc",