diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-09 19:12:49 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-09 19:12:49 +0000 |
commit | 8d98e80a6b914c6e1708b2ccc5cfd49e0ed43584 (patch) | |
tree | 8bc54aaef51243ef6669de37f4a2641a3f759cbc /src/irc/core/channels-query.c | |
parent | e6cc73bd4b8f34350c93eb45aa613de535a7b5ae (diff) | |
download | irssi-8d98e80a6b914c6e1708b2ccc5cfd49e0ed43584.zip |
-querychans option for servers and ircnets which specifies how many
channels to query in one line with MODE/WHO commands after joined to a
number of channels. Default is 10 which works usually, with some very
stupid servers (just found one) this has to be set to 1 however.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@981 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/channels-query.c')
-rw-r--r-- | src/irc/core/channels-query.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/irc/core/channels-query.c b/src/irc/core/channels-query.c index b338a0eb..10ab90f9 100644 --- a/src/irc/core/channels-query.c +++ b/src/irc/core/channels-query.c @@ -50,8 +50,6 @@ loop: #include "irc-servers.h" #include "servers-redirect.h" -#define MAX_QUERIES_IN_LINE 10 - enum { CHANNEL_QUERY_MODE, CHANNEL_QUERY_WHO, @@ -187,10 +185,10 @@ static void channel_send_query(IRC_SERVER_REC *server, int query) chans = rec->queries[query]; - if (g_slist_length(rec->queries[query]) > MAX_QUERIES_IN_LINE) { + if (g_slist_length(rec->queries[query]) > server->max_query_chans) { GSList *lastchan; - lastchan = g_slist_nth(rec->queries[query], MAX_QUERIES_IN_LINE-1); + lastchan = g_slist_nth(rec->queries[query], server->max_query_chans-1); newchans = lastchan->next; lastchan->next = NULL; } @@ -291,7 +289,7 @@ static void channel_send_query(IRC_SERVER_REC *server, int query) if (!onlyone) { /* all channels queried, set to newchans which contains the rest of the channels for the same query (usually NULL - unless query count exceeded MAX_QUERIES_IN_LINE) */ + unless query count exceeded max_query_chans) */ g_slist_free(rec->queries[query]); rec->queries[query] = newchans; } else { |