Changeset 13fa2db
- Timestamp:
- 2010-07-27T22:24:59Z (14 years ago)
- Branches:
- master
- Children:
- 3b3c50d9
- Parents:
- 4255320
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_commands.c
r4255320 r13fa2db 140 140 *comma = '\0'; 141 141 142 if( ( ic = irc_channel_by_name( irc, s ) ) == NULL ) 143 { 144 ic = irc_channel_new( irc, s ); 145 142 if( ( ic = irc_channel_by_name( irc, s ) ) == NULL && 143 ( ic = irc_channel_new( irc, s ) ) ) 144 { 146 145 if( strcmp( set_getstr( &ic->set, "type" ), "control" ) != 0 ) 147 146 { … … 163 162 else 164 163 { 164 /* The set commands above will run this already, 165 but if we didn't hit any, we have to fill the 166 channel with the default population. */ 165 167 bee_irc_channel_update( ic->irc, ic, NULL ); 166 168 } 167 169 } 168 169 if( ic == NULL ) 170 else if( ic == NULL ) 170 171 { 171 172 irc_send_num( irc, 479, "%s :Invalid channel name", s );
Note: See TracChangeset
for help on using the changeset viewer.