- Timestamp:
- 2010-07-11T10:59:56Z (14 years ago)
- Branches:
- master
- Children:
- 133cdff
- Parents:
- 1e52e1f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.