diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-01-25 10:31:22 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-01-25 10:31:22 +0000 |
commit | 1607c44e75b8fb9196a36bea642c8e46c9c362c5 (patch) | |
tree | f70d65831bf4f6ecd6422ecbd2fbecc50f81a0f1 /src/irc | |
parent | 364d774ded1816523fb7ddcf5ca0ee6442612b2e (diff) | |
download | weechat-1607c44e75b8fb9196a36bea642c8e46c9c362c5.zip |
Added new option "irc_away_check_max_nicks" to disable away check on channels with high number of nicks (patch from Gwenn)
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/irc-channel.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/irc/irc-channel.c b/src/irc/irc-channel.c index 93d8f05c0..2809e518e 100644 --- a/src/irc/irc-channel.c +++ b/src/irc/irc-channel.c @@ -341,8 +341,12 @@ channel_check_away (t_irc_server *server, t_irc_channel *channel) { if (channel->type == CHANNEL_TYPE_CHANNEL) { - channel->checking_away++; - server_sendf (server, "WHO %s\r\n", channel->name); + if ((cfg_irc_away_check_max_nicks == 0) || + (channel->nicks_count <= cfg_irc_away_check_max_nicks)) + { + channel->checking_away++; + server_sendf (server, "WHO %s\r\n", channel->name); + } } } |