From 59f91046c195887deda721191d5070b3a29173cf Mon Sep 17 00:00:00 2001 From: Wouter Coekaerts Date: Sun, 20 Aug 2006 13:40:03 +0000 Subject: [PATCH] don't wait for all /names replies before syncing if we can't combine queries anyways. Patch by jilles git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4321 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/channels-query.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/irc/core/channels-query.c b/src/irc/core/channels-query.c index 0274a71a..484c3fcf 100644 --- a/src/irc/core/channels-query.c +++ b/src/irc/core/channels-query.c @@ -274,8 +274,10 @@ static void query_check(IRC_SERVER_REC *server) if (rec->current_queries != NULL) return; /* old queries haven't been answered yet */ - if (!channels_have_all_names(server)) { + if (server->max_query_chans > 1 && !server->no_multi_who && !server->no_multi_mode && !channels_have_all_names(server)) { /* all channels haven't sent /NAMES list yet */ + /* only do this if there would be a benefit in combining + * queries -- jilles */ return; }