diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-03-30 16:16:13 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-03-30 16:16:13 +0200 |
commit | 474541b857849e73e1277afa58c3c8ce6178aac6 (patch) | |
tree | d2f8ff497d781d54c92f49af03c8e911a57f14cd /src/plugins/irc/irc-nick.c | |
parent | d7d91d6cf398217c530d253b3a6de202ed459a27 (diff) | |
download | weechat-474541b857849e73e1277afa58c3c8ce6178aac6.zip |
irc: add support of "away-notify" capability (closes #12)
Diffstat (limited to 'src/plugins/irc/irc-nick.c')
-rw-r--r-- | src/plugins/irc/irc-nick.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-nick.c b/src/plugins/irc/irc-nick.c index c9b6763af..370a275e9 100644 --- a/src/plugins/irc/irc-nick.c +++ b/src/plugins/irc/irc-nick.c @@ -903,6 +903,7 @@ irc_nick_set_away (struct t_irc_server *server, struct t_irc_channel *channel, struct t_irc_nick *nick, int is_away) { if (!is_away + || 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) || (channel->nicks_count <= IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_AWAY_CHECK_MAX_NICKS))))) |