diff options
author | Sadie Powell <sadie@witchery.services> | 2023-11-14 15:02:04 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2023-11-14 15:02:04 +0000 |
commit | b28180d680f974b7d3cf72667681b8cda6a39b0a (patch) | |
tree | 45ce01374a4eb95c7b9bca73f25bc28dfefb2721 /modules/protocol/unrealircd.cpp | |
parent | 0f1f0c5a221d199fefc38e116a98fb4ff2c0a4f3 (diff) |
Implement support for the ANONYMOUS SASL mechanism.
Diffstat (limited to 'modules/protocol/unrealircd.cpp')
-rw-r--r-- | modules/protocol/unrealircd.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/modules/protocol/unrealircd.cpp b/modules/protocol/unrealircd.cpp index a6b0aaef8..88826b7da 100644 --- a/modules/protocol/unrealircd.cpp +++ b/modules/protocol/unrealircd.cpp @@ -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 |