Changeset 4543356c


Ignore:
Timestamp:
2016-02-04T08:17:46Z (9 years ago)
Author:
Shane Synan <digitalcircuit36939@…>
Branches:
master
Children:
9456255
Parents:
db5ef3a
Message:

Send away-notify after join/part from IRC channel

Move irc_send_away_notify below bee_irc_channel_update to delay
sending the updated away-notify status until after any nicks have
joined/quit. Otherwise, some IRC clients will drop the status
messages as they go to nicks that the client doesn't know about.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    rdb5ef3a r4543356c  
    120120        }
    121121
    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);
    126         }
    127 
    128122        if ((bu->flags & BEE_USER_ONLINE) != (old->flags & BEE_USER_ONLINE)) {
    129123                if (bu->flags & BEE_USER_ONLINE) {
     
    153147
    154148        bee_irc_channel_update(irc, NULL, iu);
     149
     150        if ((irc->caps & CAP_AWAY_NOTIFY) &&
     151            ((bu->flags & BEE_USER_AWAY) != (old->flags & BEE_USER_AWAY) ||
     152             (bu->flags & BEE_USER_ONLINE) != (old->flags & BEE_USER_ONLINE))) {
     153                irc_send_away_notify(iu);
     154        }
    155155
    156156        return TRUE;
Note: See TracChangeset for help on using the changeset viewer.