Changeset eb50495 for irc_im.c


Ignore:
Timestamp:
2010-05-04T08:45:10Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
9438323
Parents:
9893da3
Message:

Show offline/away status better in /WHO and /WHOIS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r9893da3 reb50495  
    8282        irc_user_t *iu = bu->ui_data;
    8383        irc_channel_t *ic = irc->channels->data; /* For now, just pick the first channel. */
     84       
     85        /* Do this outside the if below since away state can change without
     86           the online state changing. */
     87        iu->flags &= ~IRC_USER_AWAY;
     88        if( bu->flags & BEE_USER_AWAY || !( bu->flags & BEE_USER_ONLINE ) )
     89                iu->flags |= IRC_USER_AWAY;
    8490       
    8591        if( ( bu->flags & BEE_USER_ONLINE ) != ( old->flags & BEE_USER_ONLINE ) )
Note: See TracChangeset for help on using the changeset viewer.