Changeset 449a51d for root_commands.c


Ignore:
Timestamp:
2010-03-16T10:18:02Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ec55a7d
Parents:
9fca0657
Message:

Include non-away status messages in blist and whois responses. The whois
change is a complete violation of the IRC protocol but that doesn't seem
to be an uncommon thing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r9fca0657 r449a51d  
    914914                online = 1;
    915915        else
    916                 online =  away = 1;
     916                online = away = 1;
    917917       
    918918        if( strchr( irc->umode, 'b' ) != NULL )
     
    927927                if( online == 1 )
    928928                {
     929                        char st[256] = "Online";
     930                       
     931                        if( u->status_msg )
     932                                g_snprintf( st, sizeof( st ) - 1, "Online (%s)", u->status_msg );
     933                       
    929934                        g_snprintf( s, sizeof( s ) - 1, "%s@%s %s(%s)", u->user, u->host, u->ic->acc->prpl->name, u->ic->acc->user );
    930                         irc_usermsg( irc, format, u->nick, s, "Online" );
     935                        irc_usermsg( irc, format, u->nick, s, st );
    931936                }
    932937               
Note: See TracChangeset for help on using the changeset viewer.