Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    r8358691 r674a01d  
    2626#define BITLBEE_CORE
    2727#include "bitlbee.h"
     28#include "help.h"
    2829#include "ipc.h"
    2930
     
    302303        char *channel = cmd[1];
    303304        irc_channel_t *ic;
     305        irc_user_t *iu;
    304306       
    305307        if( !channel || *channel == '0' || *channel == '*' || !*channel )
     
    307309        else if( ( ic = irc_channel_by_name( irc, channel ) ) )
    308310                irc_send_who( irc, ic->users, channel );
     311        else if( ( iu = irc_user_by_name( irc, channel ) ) )
     312        {
     313                /* Tiny hack! */
     314                GSList *l = g_slist_append( NULL, iu );
     315                irc_send_who( irc, l, channel );
     316                g_slist_free( l );
     317        }
    309318        else
    310319                irc_send_num( irc, 403, "%s :No such channel", channel );
     
    626635        irc_send_msg_raw( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS OK" );
    627636       
    628         for( i = 0; root_commands[i].command; i ++ )
    629                 irc_send_msg_f( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS %s", root_commands[i].command );
     637        for( i = 0; commands[i].command; i ++ )
     638                irc_send_msg_f( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS %s", commands[i].command );
    630639       
    631640        for( h = global.help; h; h = h->next )
Note: See TracChangeset for help on using the changeset viewer.