Skip to content

Commit

Permalink
Sirc(fix): end SASL negotiation at SASLSUCCESS (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Oct 2, 2022
1 parent a5d6f2e commit 2f47e15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/app_irc_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,6 @@ static void irc_event_numeric(SircSession *sirc, int event,
msg = params[3];

srv->loggedin = TRUE;
sirc_cmd_cap_end(sirc); // End negotiation
srn_chat_add_recv_message(srv->chat, chat_user, msg);
break;
}
Expand All @@ -1777,6 +1776,8 @@ static void irc_event_numeric(SircSession *sirc, int event,
g_return_if_fail(count >= 2);
msg = params[1];

// See also: https://github.com/SrainApp/srain/issues/371
sirc_cmd_cap_end(sirc); // End negotiation
srn_chat_add_recv_message(srv->chat, chat_user, msg);
break;
}
Expand Down

0 comments on commit 2f47e15

Please sign in to comment.