Changeset 80c2f3c for irc_im.c


Ignore:
Timestamp:
2015-11-20T15:51:45Z (5 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
8fdeaa5
Parents:
0d8a9bb0
git-author:
dequis <dx@…> (20-11-15 15:33:34)
git-committer:
dequis <dx@…> (20-11-15 15:51:45)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r0d8a9bb0 r80c2f3c  
    118118        if (bu->flags & BEE_USER_AWAY || !(bu->flags & BEE_USER_ONLINE)) {
    119119                iu->flags |= IRC_USER_AWAY;
     120        }
     121
     122        if ((irc->caps & CAP_AWAY_NOTIFY) &&
     123            ((bu->flags & BEE_USER_AWAY) != (old->flags & BEE_USER_AWAY) ||
     124             (bu->flags & BEE_USER_ONLINE) != (old->flags & BEE_USER_ONLINE))) {
     125                irc_send_away_notify(iu);
    120126        }
    121127
Note: See TracChangeset for help on using the changeset viewer.