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/irc-chatnets.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/irc-chatnets.c')
-rw-r--r-- | src/irc/core/irc-chatnets.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/irc/core/irc-chatnets.c b/src/irc/core/irc-chatnets.c index f5bcaf0f..40c4cae1 100644 --- a/src/irc/core/irc-chatnets.c +++ b/src/irc/core/irc-chatnets.c @@ -40,6 +40,7 @@ static void ircnet_read(CONFIG_NODE *node) rec->max_cmds_at_once = config_node_get_int(node, "cmdmax", 0); rec->cmd_queue_speed = config_node_get_int(node, "cmdspeed", 0); + rec->max_query_chans = config_node_get_int(node, "max_query_chans", 0); rec->max_kicks = config_node_get_int(node, "max_kicks", 0); rec->max_msgs = config_node_get_int(node, "max_msgs", 0); @@ -62,6 +63,8 @@ static void ircnet_save(IRC_CHATNET_REC *rec) iconfig_node_set_int(node, "cmdmax", rec->max_cmds_at_once); if (rec->cmd_queue_speed > 0) iconfig_node_set_int(node, "cmdspeed", rec->cmd_queue_speed); + if (rec->max_query_chans > 0) + iconfig_node_set_int(node, "max_query_chans", rec->max_query_chans); if (rec->max_kicks > 0) iconfig_node_set_int(node, "max_kicks", rec->max_kicks); |