aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--root_commands.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/root_commands.c b/root_commands.c
index a05cffb0..a74d4580 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -408,6 +408,7 @@ static void cmd_account( irc_t *irc, char **cmd )
MIN_ARGS( 3 );
if( cmd[4] == NULL )
+ {
for( a = irc->b->accounts; a; a = a->next )
if( strcmp( a->pass, PASSWORD_PENDING ) == 0 )
{
@@ -415,6 +416,9 @@ static void cmd_account( irc_t *irc, char **cmd )
"first (use /OPER)", a->prpl->name, a->user );
return;
}
+
+ irc->status |= OPER_HACK_ACCOUNT_ADD;
+ }
prpl = find_protocol( cmd[2] );