From fda194fe19a3e91b12387aeb9eda544580e48381 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 19 Mar 2012 21:01:50 +0000 Subject: Allow identify -noload/-force without typing a password. (/OPER) Patch from trac3r, bug #814. --- root_commands.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'root_commands.c') 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 ) { -- cgit v1.2.3