mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 12:26:40 +02:00
irc: send WHOX message only if server supports it
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user