aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2018-03-19 00:27:19 -0300
committerdequis <dx@dxzone.com.ar>2018-03-19 00:27:19 -0300
commit4528a52acf8873af7e8b50fa66205c9c2c930a79 (patch)
tree671dac0be801bd35ac93fa75cd3bfe205c09faf3
parent7a99a0c8713d34febb69952a42930222a7fda67d (diff)
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.
-rw-r--r--irc_commands.c3
1 files changed, 3 insertions, 0 deletions
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;