mirror of
https://github.com/RedWizardsLab/EchoHub.git
synced 2026-09-04 16:46:08 +02:00
feat: handle SASL authentication abort scenario in IrcCommandHandler
This commit is contained in:
@@ -140,6 +140,15 @@ public sealed class IrcCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTHENTICATE * = client aborts SASL
|
||||
if (msg.Parameters[0] == "*")
|
||||
{
|
||||
_conn.IsSasl = false;
|
||||
await _conn.SendNumericAsync(ServerName, IrcNumericReply.ERR_SASLFAIL,
|
||||
":SASL authentication aborted");
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var decoded = Convert.FromBase64String(msg.Parameters[0]);
|
||||
|
||||
Reference in New Issue
Block a user