Changeset af9f2ca
- Timestamp:
- 2010-07-11T10:59:56Z (14 years ago)
- Branches:
- master
- Children:
- 133cdff
- Parents:
- 1e52e1f
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/user-guide/commands.xml
r1e52e1f raf9f2ca 421 421 </bitlbee-setting> 422 422 423 <bitlbee-setting name="allow_takeover" type="boolean" scope="global"> 424 <default>true</default> 425 426 <description> 427 <para> 428 When you're already connected to a BitlBee server and you connect (and identify) again, BitlBee will offer to migrate your existing session to the new connection. If for whatever reason you don't want this, you can disable this setting. 429 </para> 430 </description> 431 </bitlbee-setting> 432 423 433 <bitlbee-setting name="auto_connect" type="boolean" scope="both"> 424 434 <default>true</default> -
ipc.c
r1e52e1f raf9f2ca 317 317 { 318 318 /* Master->New connection */ 319 if( !set_getbool( &irc->b->set, "allow_takeover" ) ) 320 { 321 ipc_child_cmd_takeover_no( irc ); 322 return; 323 } 324 319 325 /* Offer to take over the old session, unless for some reason 320 326 we're already logging into IM connections. */ … … 336 342 ipc_child_recv_fd != -1 && 337 343 strcmp( irc->user->nick, cmd[2] ) == 0 && 338 strcmp( irc->password, cmd[3] ) == 0 ) 344 strcmp( irc->password, cmd[3] ) == 0 && 345 set_getbool( &irc->b->set, "allow_takeover" ) ) 339 346 { 340 347 irc_switch_fd( irc, ipc_child_recv_fd ); … … 464 471 break; 465 472 } 466 if( l == NULL ) 473 if( l == NULL || 474 !set_getbool( &irc->b->set, "allow_takeover" ) || 475 !set_getbool( &old->b->set, "allow_takeover" ) ) 467 476 return FALSE; 468 477 -
irc.c
r1e52e1f raf9f2ca 100 100 b->ui = &irc_ui_funcs; 101 101 102 s = set_add( &b->set, "allow_takeover", "true", set_eval_bool, irc ); 102 103 s = set_add( &b->set, "away_devoice", "true", set_eval_away_devoice, irc ); 103 104 s = set_add( &b->set, "away_reply_timeout", "3600", set_eval_int, irc ); … … 659 660 { 660 661 b_event_remove( irc->w_watch_source_id ); 662 irc->w_watch_source_id = 0; 661 663 g_free( irc->sendbuffer ); 662 irc->sendbuffer = irc->w_watch_source_id = 0;664 irc->sendbuffer = NULL; 663 665 } 664 666 -
root_commands.c
r1e52e1f raf9f2ca 175 175 if( !ipc_child_identify( irc ) && load && 176 176 set_getbool( &irc->b->set, "auto_connect" ) ) 177 {178 b_event_remove( irc->login_source_id );179 irc->login_source_id = -1;180 177 cmd_identify_finish( irc, 0, 0 ); 181 }182 178 183 179 break; … … 196 192 cmd_account( irc, account_on ); 197 193 194 b_event_remove( irc->login_source_id ); 198 195 irc->login_source_id = -1; 199 196 return FALSE;
Note: See TracChangeset
for help on using the changeset viewer.