Changes in irc_commands.c [8358691:674a01d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_commands.c
r8358691 r674a01d 26 26 #define BITLBEE_CORE 27 27 #include "bitlbee.h" 28 #include "help.h" 28 29 #include "ipc.h" 29 30 … … 302 303 char *channel = cmd[1]; 303 304 irc_channel_t *ic; 305 irc_user_t *iu; 304 306 305 307 if( !channel || *channel == '0' || *channel == '*' || !*channel ) … … 307 309 else if( ( ic = irc_channel_by_name( irc, channel ) ) ) 308 310 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 } 309 318 else 310 319 irc_send_num( irc, 403, "%s :No such channel", channel ); … … 626 635 irc_send_msg_raw( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS OK" ); 627 636 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 ); 630 639 631 640 for( h = global.help; h; h = h->next )
Note: See TracChangeset
for help on using the changeset viewer.