aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--irc_im.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/irc_im.c b/irc_im.c
index 72a0d8ce..3b049462 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -119,12 +119,6 @@ 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)) {
@@ -153,6 +147,12 @@ static gboolean bee_irc_user_status(bee_t *bee, bee_user_t *bu, bee_user_t *old)
bee_irc_channel_update(irc, NULL, iu);
+ 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);
+ }
+
return TRUE;
}