diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-03-19 21:01:50 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-03-19 21:01:50 +0000 |
commit | fda194fe19a3e91b12387aeb9eda544580e48381 (patch) | |
tree | 7f0651fc729cdca3dd1bfcfd0c7e347a8d8e06d1 /root_commands.c | |
parent | d18dee42088f0bef9d09dbc7903590d755d19a50 (diff) |
Allow identify -noload/-force without typing a password. (/OPER)
Patch from trac3r, bug #814.
Diffstat (limited to 'root_commands.c')
-rw-r--r-- | root_commands.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/root_commands.c b/root_commands.c index 41b98a17..b46b076d 100644 --- a/root_commands.c +++ b/root_commands.c @@ -120,10 +120,14 @@ static void cmd_identify( irc_t *irc, char **cmd ) { load = FALSE; password = cmd[2]; + if( password == NULL ) + irc->status |= OPER_HACK_IDENTIFY_NOLOAD; } else if( strncmp( cmd[1], "-force", 6 ) == 0 ) { password = cmd[2]; + if( password == NULL ) + irc->status |= OPER_HACK_IDENTIFY_FORCE; } else if( irc->b->accounts != NULL ) { |