Changeset f892236


Ignore:
Timestamp:
2016-03-20T03:58:05Z (8 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
d701547
Parents:
4e0e590
git-author:
Shane Synan <digitalcircuit36939@…> (29-02-16 21:24:01)
git-committer:
dequis <dx@…> (20-03-16 03:58:05)
Message:

Send new away message when message changes

Send new away message when away-notify is enabled and the status
changes (e.g. "Away" to "Mobile") or the status message changes
without returning from away.

Fixes IRC clients with away-notify persisting old away messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r4e0e590 rf892236  
    148148        bee_irc_channel_update(irc, NULL, iu);
    149149
     150        /* If away-notify enabled, send status updates when:
     151         * Away or Online state changes
     152         * Status changes (e.g. "Away" to "Mobile")
     153         * Status message changes
     154         */
    150155        if ((irc->caps & CAP_AWAY_NOTIFY) &&
    151156            ((bu->flags & BEE_USER_AWAY) != (old->flags & BEE_USER_AWAY) ||
    152              (bu->flags & BEE_USER_ONLINE) != (old->flags & BEE_USER_ONLINE))) {
     157             (bu->flags & BEE_USER_ONLINE) != (old->flags & BEE_USER_ONLINE) ||
     158             (g_strcmp0(bu->status, old->status) != 0) ||
     159             (g_strcmp0(bu->status_msg, old->status_msg) != 0))) {
    153160                irc_send_away_notify(iu);
    154161        }
Note: See TracChangeset for help on using the changeset viewer.