Changeset 324c378 for irc_commands.c
- Timestamp:
- 2010-07-13T23:14:41Z (14 years ago)
- Branches:
- master
- Children:
- 3709301
- Parents:
- b1af3e8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_commands.c
rb1af3e8 r324c378 141 141 142 142 if( ( ic = irc_channel_by_name( irc, s ) ) == NULL ) 143 { 143 144 ic = irc_channel_new( irc, s ); 145 146 if( strcmp( set_getstr( &ic->set, "type" ), "control" ) != 0 ) 147 { 148 /* Autoconfiguration is for control channels only ATM. */ 149 } 150 else if( bee_group_by_name( ic->irc->b, ic->name + 1, FALSE ) ) 151 { 152 set_setstr( &ic->set, "group", ic->name + 1 ); 153 set_setstr( &ic->set, "fill_by", "group" ); 154 } 155 else if( set_setstr( &ic->set, "protocol", ic->name + 1 ) ) 156 { 157 set_setstr( &ic->set, "fill_by", "protocol" ); 158 } 159 else if( set_setstr( &ic->set, "account", ic->name + 1 ) ) 160 { 161 set_setstr( &ic->set, "fill_by", "account" ); 162 } 163 else 164 { 165 bee_irc_channel_update( ic->irc, ic, NULL ); 166 } 167 } 144 168 145 169 if( ic == NULL )
Note: See TracChangeset
for help on using the changeset viewer.