mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 04:46:37 +02:00
irc: always set nick away status on WHO response (sent manually or automatically with server option "away_check")
This commit is contained in:
@@ -4555,22 +4555,8 @@ IRC_PROTOCOL_CALLBACK(354)
|
||||
/* update away flag in nick */
|
||||
if (ptr_channel && ptr_nick)
|
||||
{
|
||||
if (pos_attr
|
||||
&& (server->cap_away_notify
|
||||
|| ((IRC_SERVER_OPTION_INTEGER(
|
||||
server, IRC_SERVER_OPTION_AWAY_CHECK) > 0)
|
||||
&& ((IRC_SERVER_OPTION_INTEGER(
|
||||
server, IRC_SERVER_OPTION_AWAY_CHECK_MAX_NICKS) == 0)
|
||||
|| (ptr_channel->nicks_count <= IRC_SERVER_OPTION_INTEGER(
|
||||
server, IRC_SERVER_OPTION_AWAY_CHECK_MAX_NICKS))))))
|
||||
{
|
||||
irc_nick_set_away (server, ptr_channel, ptr_nick,
|
||||
(pos_attr[0] == 'G') ? 1 : 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
irc_nick_set_away (server, ptr_channel, ptr_nick, 0);
|
||||
}
|
||||
irc_nick_set_away (server, ptr_channel, ptr_nick,
|
||||
(pos_attr && (pos_attr[0] == 'G')) ? 1 : 0);
|
||||
}
|
||||
|
||||
/* update account flag in nick */
|
||||
|
||||
Reference in New Issue
Block a user