pidgin: 90696490: Suppress error spews when we've left an ...

elb at pidgin.im elb at pidgin.im
Tue Jul 12 15:56:08 EDT 2011


----------------------------------------------------------------------
Revision: 906964904ac9b3c24c992e73bc9c2e0e0efea5fc
Parent:   8c0179fd3f2768a3fa391f363be79b730aee09c8
Author:   elb at pidgin.im
Date:     07/12/11 15:49:44
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/906964904ac9b3c24c992e73bc9c2e0e0efea5fc

Changelog: 

Suppress error spews when we've left an IRC channel but the window is open.

My take on a patch from Florian Qu?ze to fix yet another IRC WHO problem.

Changes against parent 8c0179fd3f2768a3fa391f363be79b730aee09c8

  patched  libpurple/protocols/irc/irc.c

-------------- next part --------------
============================================================
--- libpurple/protocols/irc/irc.c	b3bbb6d583e300ffb669d1a5f136aaec743adb0a
+++ libpurple/protocols/irc/irc.c	c50575ab5358f66696f67c259895634663e4efc1
@@ -251,7 +251,9 @@ static void irc_who_channel(PurpleConver
 
 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",


More information about the Commits mailing list