aboutsummaryrefslogtreecommitdiffstats
path: root/irc_commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-11-24 22:32:12 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2010-11-24 22:32:12 +0000
commitbedad20a945ef60dbc46e44e5fb26e3b7047490a (patch)
tree7d9bb2c9132feaaa3198a35a8293ef799b839875 /irc_commands.c
parent9564e55a35ebffaad644c13827ec2b795fb21154 (diff)
Some polishing/documentation for the "account add" without password hack.
Diffstat (limited to 'irc_commands.c')
-rw-r--r--irc_commands.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/irc_commands.c b/irc_commands.c
index 3b561d00..a183ec35 100644
--- a/irc_commands.c
+++ b/irc_commands.c
@@ -408,6 +408,12 @@ static void irc_cmd_oper( irc_t *irc, char **cmd )
if( strcmp( a->pass, PASSWORD_PENDING ) == 0 )
{
set_setstr( &a->set, "password", cmd[2] );
+ irc_usermsg( irc, "Password added to IM account "
+ "%s(%s)", a->prpl->name, a->user );
+ /* The IRC client may expect this. Report failure since
+ we didn't hand out a +o. */
+ irc_send_num( irc, 491, ":Password added to IM account "
+ "%s(%s)", a->prpl->name, a->user );
return;
}
@@ -421,7 +427,7 @@ static void irc_cmd_oper( irc_t *irc, char **cmd )
}
else
{
- irc_send_num( irc, 432, ":Incorrect password" );
+ irc_send_num( irc, 491, ":Incorrect password" );
}
}