Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    ra72af0d r8358691  
    302302        char *channel = cmd[1];
    303303        irc_channel_t *ic;
    304         irc_user_t *iu;
    305304       
    306305        if( !channel || *channel == '0' || *channel == '*' || !*channel )
     
    308307        else if( ( ic = irc_channel_by_name( irc, channel ) ) )
    309308                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         }
    317309        else
    318310                irc_send_num( irc, 403, "%s :No such channel", channel );
     
    634626        irc_send_msg_raw( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS OK" );
    635627       
    636         for( i = 0; commands[i].command; i ++ )
    637                 irc_send_msg_f( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS %s", commands[i].command );
     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 );
    638630       
    639631        for( h = global.help; h; h = h->next )
Note: See TracChangeset for help on using the changeset viewer.