Changeset 4c3519a for irc_user.c


Ignore:
Timestamp:
2010-04-14T22:45:09Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
e7edbb7
Parents:
003a12b
Message:

Restored blist command.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_user.c

    r003a12b r4c3519a  
    145145                        return "Offline";
    146146                else if( bu->flags & BEE_USER_AWAY )
    147                         /* TODO: status msgs, etc. */
    148                         return bu->status;
     147                {
     148                        if( bu->status_msg )
     149                        {
     150                                static char ret[MAX_STRING];
     151                                g_snprintf( ret, MAX_STRING - 1, "%s (%s)",
     152                                            bu->status ? : "Away", bu->status_msg );
     153                                return ret;
     154                        }
     155                        else
     156                                return bu->status ? : "Away";
     157                }
    149158        }
    150159       
Note: See TracChangeset for help on using the changeset viewer.