Changeset 003a12b for irc_user.c


Ignore:
Timestamp:
2010-04-14T13:35:41Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4c3519a
Parents:
d7d677d
Message:

Restored all remaining IRC commands that make some sense to have at this
point.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_user.c

    rd7d677d r003a12b  
    133133}
    134134
     135const char *irc_user_get_away( irc_user_t *iu )
     136{
     137        irc_t *irc = iu->irc;
     138        bee_user_t *bu = iu->bu;
     139       
     140        if( iu == irc->user )
     141                return set_getstr( &irc->b->set, "away" );
     142        else if( bu )
     143        {
     144                if( !bu->flags & BEE_USER_ONLINE )
     145                        return "Offline";
     146                else if( bu->flags & BEE_USER_AWAY )
     147                        /* TODO: status msgs, etc. */
     148                        return bu->status;
     149        }
     150       
     151        return NULL;
     152}
     153
    135154/* User-type dependent functions, for root/NickServ: */
    136155static gboolean root_privmsg( irc_user_t *iu, const char *msg )
Note: See TracChangeset for help on using the changeset viewer.