Mercurial > pidgin
diff libpurple/protocols/irc/irc.c @ 21768:6b42bed44324
Do not allow ISON requests to stack in IRC
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Tue, 04 Dec 2007 20:27:06 +0000 |
parents | 38cc722159ff |
children | 252b96b6a32c 60f5abc6cf0c |
line wrap: on
line diff
--- a/libpurple/protocols/irc/irc.c Tue Dec 04 09:32:22 2007 +0000 +++ b/libpurple/protocols/irc/irc.c Tue Dec 04 20:27:06 2007 +0000 @@ -184,9 +184,14 @@ /* XXX I don't like messing directly with these buddies */ gboolean irc_blist_timeout(struct irc_conn *irc) { - GString *string = g_string_sized_new(512); + GString *string; char *list, *buf; + if (irc->ison_outstanding) + return TRUE; + + string = g_string_sized_new(512); + g_hash_table_foreach(irc->buddies, (GHFunc)irc_buddy_append, (gpointer)string); list = g_string_free(string, FALSE); @@ -200,6 +205,8 @@ irc_send(irc, buf); g_free(buf); + irc->ison_outstanding = TRUE; + return TRUE; }