Changeset af9f2ca for ipc.c


Ignore:
Timestamp:
2010-07-11T10:59:56Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
133cdff
Parents:
1e52e1f
Message:

Added allow_takeover setting for people who don't like this new functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipc.c

    r1e52e1f raf9f2ca  
    317317        {
    318318                /* Master->New connection */
     319                if( !set_getbool( &irc->b->set, "allow_takeover" ) )
     320                {
     321                        ipc_child_cmd_takeover_no( irc );
     322                        return;
     323                }
     324               
    319325                /* Offer to take over the old session, unless for some reason
    320326                   we're already logging into IM connections. */
     
    336342                    ipc_child_recv_fd != -1 &&
    337343                    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" ) )
    339346                {
    340347                        irc_switch_fd( irc, ipc_child_recv_fd );
     
    464471                                break;
    465472                }
    466                 if( l == NULL )
     473                if( l == NULL ||
     474                    !set_getbool( &irc->b->set, "allow_takeover" ) ||
     475                    !set_getbool( &old->b->set, "allow_takeover" ) )
    467476                        return FALSE;
    468477               
Note: See TracChangeset for help on using the changeset viewer.