Changeset 4528a52 for irc_commands.c


Ignore:
Timestamp:
2018-03-19T03:27:19Z (6 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
715abe4
Parents:
7a99a0c
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    r7a99a0c r4528a52  
    147147                        irc->user->nick = g_strdup(user);
    148148                }
     149                irc_send_num(irc, 900, "%s!%s@%s %s :You are now logged in as %s",
     150                             irc->user->nick, irc->user->user, irc->user->host,
     151                             irc->user->nick, irc->user->nick);
    149152                irc_send_num(irc, 903, ":Password accepted");
    150153                return TRUE;
Note: See TracChangeset for help on using the changeset viewer.