From 4528a52acf8873af7e8b50fa66205c9c2c930a79 Mon Sep 17 00:00:00 2001 From: dequis Date: Mon, 19 Mar 2018 00:27:19 -0300 Subject: irc_commands: send numeric 900 RPL_SASLSUCCESS too, some clients need it The nodejs irc-framework lib used by thelounge and kiwiirc seems to expect 900 on successful login, instead of just 903, so they hang on sasl auth from bitlbee. The sasl spec isn't very specific on which should be used (IMO clients should handle both), but it seems to point at the direction of sending both, so both it is. --- irc_commands.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'irc_commands.c') diff --git a/irc_commands.c b/irc_commands.c index 19855075..4b2f6b28 100644 --- a/irc_commands.c +++ b/irc_commands.c @@ -146,6 +146,9 @@ static gboolean irc_sasl_check_pass(irc_t *irc, char *user, char *pass) /* set the nick here so we have it for the following numeric */ irc->user->nick = g_strdup(user); } + irc_send_num(irc, 900, "%s!%s@%s %s :You are now logged in as %s", + irc->user->nick, irc->user->user, irc->user->host, + irc->user->nick, irc->user->nick); irc_send_num(irc, 903, ":Password accepted"); return TRUE; -- cgit v1.2.3