1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 22:43:13 +02:00

Implement support for the ANONYMOUS SASL mechanism.

This commit is contained in:
Sadie Powell
2023-11-14 15:02:04 +00:00
parent 0f1f0c5a22
commit b28180d680
6 changed files with 80 additions and 24 deletions
+9 -5
View File
@@ -34,6 +34,7 @@ class UnrealIRCdProto : public IRCDProto
CanSQLineChannel = true;
CanSZLine = true;
CanSVSHold = true;
CanSVSLogout = true;
CanCertFP = true;
RequiresID = true;
MaxModes = 12;
@@ -401,11 +402,14 @@ class UnrealIRCdProto : public IRCDProto
distmask = uid.substr(0, p);
}
if (!na->GetVhostIdent().empty())
UplinkSocket::Message(Me) << "CHGIDENT " << uid << " " << na->GetVhostIdent();
if (!na->GetVhostHost().empty())
UplinkSocket::Message(Me) << "CHGHOST " << uid << " " << na->GetVhostHost();
UplinkSocket::Message(Me) << "SVSLOGIN " << distmask << " " << uid << " " << na->nc->display;
if (na)
{
if (!na->GetVhostIdent().empty())
UplinkSocket::Message(Me) << "CHGIDENT " << uid << " " << na->GetVhostIdent();
if (!na->GetVhostHost().empty())
UplinkSocket::Message(Me) << "CHGHOST " << uid << " " << na->GetVhostHost();
}
UplinkSocket::Message(Me) << "SVSLOGIN " << distmask << " " << uid << " " << (na ? na->nc->display : "0");
}
bool IsIdentValid(const Anope::string &ident) override