1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 00:06:39 +02:00

Add a config option to disable sasl

This commit is contained in:
Adam
2012-11-09 19:13:33 -05:00
parent 2fe387b4f0
commit ff3e396e92
6 changed files with 24 additions and 6 deletions
+3 -1
View File
@@ -483,7 +483,7 @@ struct IRCDMessageEncap : IRCDMessage
u->SetRealname(params[3]);
UplinkSocket::Message(u) << "FNAME " << params[3];
}
else if (params[1] == "SASL" && params.size() == 6)
else if (Config->NSSASL && params[1] == "SASL" && params.size() == 6)
{
class InspIRCDSASLIdentifyRequest : public IdentifyRequest
{
@@ -501,6 +501,8 @@ struct IRCDMessageEncap : IRCDMessage
void OnFail() anope_override
{
UplinkSocket::Message(Me) << "ENCAP " << this->uid.substr(0, 3) << " SASL " << Me->GetSID() << " " << this->uid << " " << " D F";
Log(findbot(Config->NickServ)) << "A user failed to identify for account " << this->GetAccount() << " using SASL";
}
};