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