mirror of
https://github.com/anope/anope.git
synced 2026-06-25 08:36:41 +02:00
SASL sends AUTHFAIL on unsupported mechanisms, fixes bug #1482
This commit is contained in:
@@ -893,7 +893,12 @@ struct IRCDMessageSASL : IRCDMessage
|
||||
return;
|
||||
|
||||
if (params[2] == "S")
|
||||
UplinkSocket::Message() << "SASL " << params[1].substr(0, p) << " " << params[1] << " C +";
|
||||
{
|
||||
if (params[3] == "PLAIN")
|
||||
UplinkSocket::Message() << "SASL " << params[1].substr(0, p) << " " << params[1] << " C +";
|
||||
else
|
||||
UplinkSocket::Message() << "SASL " << params[1].substr(0, p) << " " << params[1] << " C F";
|
||||
}
|
||||
else if (params[2] == "C")
|
||||
{
|
||||
Anope::string decoded;
|
||||
|
||||
Reference in New Issue
Block a user