diff options
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 { |