1
0
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:
DukePyrolator
2013-02-17 12:26:51 +01:00
parent 3ab6706993
commit bcf99d5998
2 changed files with 12 additions and 2 deletions
+6 -1
View File
@@ -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;