Changeset 36562b0 for root_commands.c
- Timestamp:
- 2010-06-07T00:44:45Z (14 years ago)
- Branches:
- master
- Children:
- 0d9d53e
- Parents:
- 92cb8c4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
r92cb8c4 r36562b0 522 522 irc_channel_t *ic; 523 523 524 if( ( ic = irc_channel_ by_name( irc, id ) ) )524 if( ( ic = irc_channel_get( irc, id ) ) ) 525 525 return &ic->set; 526 526 else … … 535 535 536 536 cmd_set_real( irc, cmd + 1, cmd_channel_set_findhead, NULL ); 537 } 538 else if( g_strcasecmp( cmd[1], "list" ) == 0 ) 539 { 540 GSList *l; 541 int i = 0; 542 543 if( strchr( irc->umode, 'b' ) ) 544 irc_usermsg( irc, "Channel list:" ); 545 546 for( l = irc->channels; l; l = l->next ) 547 { 548 irc_channel_t *ic = l->data; 549 550 irc_usermsg( irc, "%2d. %s, %s channel%s", i, ic->name, 551 set_getstr( &ic->set, "type" ), 552 ic->flags & IRC_CHANNEL_JOINED ? " (joined)" : "" ); 553 554 i ++; 555 } 556 irc_usermsg( irc, "End of channel list" ); 537 557 } 538 558 else
Note: See TracChangeset
for help on using the changeset viewer.