aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc_im.c')
-rw-r--r--irc_im.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/irc_im.c b/irc_im.c
index a66b72a2..587821c5 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -119,6 +119,12 @@ static gboolean bee_irc_user_status(bee_t *bee, bee_user_t *bu, bee_user_t *old)
iu->flags |= IRC_USER_AWAY;
}
+ if ((irc->caps & CAP_AWAY_NOTIFY) &&
+ ((bu->flags & BEE_USER_AWAY) != (old->flags & BEE_USER_AWAY) ||
+ (bu->flags & BEE_USER_ONLINE) != (old->flags & BEE_USER_ONLINE))) {
+ irc_send_away_notify(iu);
+ }
+
if ((bu->flags & BEE_USER_ONLINE) != (old->flags & BEE_USER_ONLINE)) {
if (bu->flags & BEE_USER_ONLINE) {
if (g_hash_table_lookup(irc->watches, iu->key)) {