From 80c2f3c775d7a7dd5a59068f1cefe55370f56529 Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 20 Nov 2015 12:33:34 -0300 Subject: IRCv3 away-notify capability Neat lightweight notifications of the awayness of contacts. In practice, this means weechat/hexchat users can see away people in their nick list and change show_users to 'online,special,away' to avoid the mode spam completely. These are also sent on online/offline changes, since offline_user_quits can be turned off, and you'd need something when they come back. --- irc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'irc.h') diff --git a/irc.h b/irc.h index b39c306c..9374473c 100644 --- a/irc.h +++ b/irc.h @@ -70,6 +70,7 @@ typedef enum { CAP_SASL = (1 << 0), CAP_MULTI_PREFIX = (1 << 1), CAP_EXTENDED_JOIN = (1 << 2), + CAP_AWAY_NOTIFY = (1 << 3), } irc_cap_flag_t; struct irc_user; @@ -341,6 +342,7 @@ void irc_send_channel_user_mode_diff(irc_channel_t *ic, irc_user_t *iu, irc_channel_user_flags_t old_flags, irc_channel_user_flags_t new_flags); void irc_send_invite(irc_user_t *iu, irc_channel_t *ic); void irc_send_cap(irc_t *irc, char *subcommand, char *body); +void irc_send_away_notify(irc_user_t *iu); /* irc_user.c */ irc_user_t *irc_user_new(irc_t *irc, const char *nick); -- cgit v1.2.3