Changeset fda194f for root_commands.c


Ignore:
Timestamp:
2012-03-19T21:01:50Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4c73ba62
Parents:
d18dee42
Message:

Allow identify -noload/-force without typing a password. (/OPER)
Patch from trac3r, bug #814.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    rd18dee42 rfda194f  
    121121                load = FALSE;
    122122                password = cmd[2];
     123                if( password == NULL )
     124                        irc->status |= OPER_HACK_IDENTIFY_NOLOAD;
    123125        }
    124126        else if( strncmp( cmd[1], "-force", 6 ) == 0 )
    125127        {
    126128                password = cmd[2];
     129                if( password == NULL )
     130                        irc->status |= OPER_HACK_IDENTIFY_FORCE;
    127131        }
    128132        else if( irc->b->accounts != NULL )
Note: See TracChangeset for help on using the changeset viewer.