Changeset 324c378
- Timestamp:
- 2010-07-13T23:14:41Z (14 years ago)
- Branches:
- master
- Children:
- 3709301
- Parents:
- b1af3e8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_channel.c
rb1af3e8 r324c378 549 549 icc->type = IRC_CC_TYPE_DEFAULT; 550 550 551 if( bee_group_by_name( ic->irc->b, ic->name + 1, FALSE ) )552 {553 set_setstr( &ic->set, "group", ic->name + 1 );554 set_setstr( &ic->set, "fill_by", "group" );555 }556 else if( set_setstr( &ic->set, "protocol", ic->name + 1 ) )557 {558 set_setstr( &ic->set, "fill_by", "protocol" );559 }560 else if( set_setstr( &ic->set, "account", ic->name + 1 ) )561 {562 set_setstr( &ic->set, "fill_by", "account" );563 }564 else565 {566 bee_irc_channel_update( ic->irc, ic, NULL );567 }568 569 551 return TRUE; 570 552 } -
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.