diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-01-25 20:30:35 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-01-25 20:30:35 +0100 |
commit | 6a7f6f509554a95a30d96076ba2e2dea7dbd4e0e (patch) | |
tree | a31cdc951148c5f54b491177e9eb67651822364f /src | |
parent | 5b51bc3bcf564fd7745220740f27829fd4024476 (diff) | |
download | weechat-6a7f6f509554a95a30d96076ba2e2dea7dbd4e0e.zip |
irc: send WHOX message only if server supports it
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-channel.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-channel.c b/src/plugins/irc/irc-channel.c index 1aebd529d..c8e5ef5f0 100644 --- a/src/plugins/irc/irc-channel.c +++ b/src/plugins/irc/irc-channel.c @@ -740,8 +740,18 @@ irc_channel_check_whox (struct t_irc_server *server, || (channel->nicks_count <= IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_AWAY_CHECK_MAX_NICKS))))) { channel->checking_whox++; - irc_server_sendf (server, IRC_SERVER_SEND_OUTQ_PRIO_LOW, NULL, - "WHO %s %%cuhsnfdar", channel->name); + if (irc_server_get_isupport_value (server, "WHOX")) + { + /* WHOX is supported */ + irc_server_sendf (server, IRC_SERVER_SEND_OUTQ_PRIO_LOW, NULL, + "WHO %s %%cuhsnfdar", channel->name); + } + else + { + /* WHOX is NOT supported */ + irc_server_sendf (server, IRC_SERVER_SEND_OUTQ_PRIO_LOW, NULL, + "WHO %s", channel->name); + } } else { |