Changeset a72af0d for irc_commands.c


Ignore:
Timestamp:
2010-08-25T00:18:27Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
3cd4016
Parents:
bd599b9
Message:

Fix /WHO on single nicks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    rbd599b9 ra72af0d  
    302302        char *channel = cmd[1];
    303303        irc_channel_t *ic;
     304        irc_user_t *iu;
    304305       
    305306        if( !channel || *channel == '0' || *channel == '*' || !*channel )
     
    307308        else if( ( ic = irc_channel_by_name( irc, channel ) ) )
    308309                irc_send_who( irc, ic->users, channel );
     310        else if( ( iu = irc_user_by_name( irc, channel ) ) )
     311        {
     312                /* Tiny hack! */
     313                GSList *l = g_slist_append( NULL, iu );
     314                irc_send_who( irc, l, channel );
     315                g_slist_free( l );
     316        }
    309317        else
    310318                irc_send_num( irc, 403, "%s :No such channel", channel );
Note: See TracChangeset for help on using the changeset viewer.