adium: 49165fe0: Only periodically WHO IRC channels with ...

thijsalkemade at gmail.com thijsalkemade at gmail.com
Thu Dec 15 11:22:28 EST 2011


----------------------------------------------------------------------
Revision: 49165fe031556f6fe6c91eadc8305a0e9001eb90
Parent:   258cdbf114369b480f0397dd82b24715a204eb1c
Author:   thijsalkemade at gmail.com
Date:     12/15/11 11:18:33
Branch:   im.pidgin.adium
URL: http://d.pidgin.im/viewmtn/revision/info/49165fe031556f6fe6c91eadc8305a0e9001eb90

Changelog: 

Only periodically WHO IRC channels with less than 40 participants. This should
make getting disconnected because of flooding a lot less likely.

Refs #a13920

Changes against parent 258cdbf114369b480f0397dd82b24715a204eb1c

  patched  libpurple/protocols/irc/irc.c

-------------- next part --------------
============================================================
--- libpurple/protocols/irc/irc.c	c50575ab5358f66696f67c259895634663e4efc1
+++ libpurple/protocols/irc/irc.c	67131a426068e27ede1ee26ba4a65156d3d4f08d
@@ -253,7 +253,8 @@ static void irc_who_channel(PurpleConver
 {
 	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))) {
+	    && !purple_conv_chat_has_left(PURPLE_CONV_CHAT(conv))
+	    && g_list_length(purple_conv_chat_get_users(PURPLE_CONV_CHAT(conv))) < 40) {
 		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