diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-11-24 22:32:12 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-11-24 22:32:12 +0000 |
commit | bedad20a945ef60dbc46e44e5fb26e3b7047490a (patch) | |
tree | 7d9bb2c9132feaaa3198a35a8293ef799b839875 /root_commands.c | |
parent | 9564e55a35ebffaad644c13827ec2b795fb21154 (diff) |
Some polishing/documentation for the "account add" without password hack.
Diffstat (limited to 'root_commands.c')
-rw-r--r-- | root_commands.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/root_commands.c b/root_commands.c index 01313b1c..207f9678 100644 --- a/root_commands.c +++ b/root_commands.c @@ -426,10 +426,8 @@ static void cmd_account( irc_t *irc, char **cmd ) set_setstr( &a->set, "server", cmd[5] ); } - irc_usermsg( irc, "Account successfully added" ); - - if( cmd[4] == NULL ) - irc_usermsg( irc, "Now, use /OPER to enter your password for this account" ); + irc_usermsg( irc, "Account successfully added%s", cmd[4] ? "" : + ", now use /OPER to enter the password" ); return; } |