Changeset a4d920b
- Timestamp:
- 2010-06-07T16:48:11Z (15 years ago)
- Branches:
- master
- Children:
- 619dd18
- Parents:
- 0a6e5d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
r0a6e5d1 ra4d920b 555 555 } 556 556 irc_usermsg( irc, "End of channel list" ); 557 } 558 else if( g_strcasecmp( cmd[1], "del" ) == 0 ) 559 { 560 irc_channel_t *ic; 561 562 MIN_ARGS( 2 ); 563 564 if( ( ic = irc_channel_get( irc, cmd[2] ) ) && 565 !( ic->flags & IRC_CHANNEL_JOINED ) && 566 ic != ic->irc->default_channel ) 567 { 568 irc_usermsg( irc, "Channel %s deleted.", ic->name ); 569 irc_channel_free( ic ); 570 } 571 else 572 irc_usermsg( irc, "Couldn't remove channel (main channel %s or " 573 "channels you're still in cannot be deleted).", 574 ic->irc->default_channel->name ); 557 575 } 558 576 else
Note: See TracChangeset
for help on using the changeset viewer.