From bedad20a945ef60dbc46e44e5fb26e3b7047490a Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 24 Nov 2010 22:32:12 +0000 Subject: Some polishing/documentation for the "account add" without password hack. --- irc_commands.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'irc_commands.c') 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" ); } } -- cgit v1.2.3