aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@google.com>2011-02-01 18:17:16 +0000
committerWilmer van der Gaast <wilmer@google.com>2011-02-01 18:17:16 +0000
commitda60f28cb75634f40936951b1ce65fd7dce70c07 (patch)
tree86e6d5fdec537d7d70b38f07c791235714536317 /root_commands.c
parent060d0661ff8c1465f394c307d0f4c2a22964c6b2 (diff)
Oops. Forgot to set OPER_HACK_ACCOUNT_ADD when adding an account.
Diffstat (limited to 'root_commands.c')
-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] );