diff options
author | dequis <dx@dxzone.com.ar> | 2015-11-20 12:33:34 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-11-20 12:51:45 -0300 |
commit | 80c2f3c775d7a7dd5a59068f1cefe55370f56529 (patch) | |
tree | 1bfdc0ed361aa8fcbdb6c6ea1c5e5af0b0920112 /irc.h | |
parent | 0d8a9bb00abe74164cd643e003f4285a299d62a5 (diff) |
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.
Diffstat (limited to 'irc.h')
-rw-r--r-- | irc.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |