summaryrefslogtreecommitdiff
path: root/modules/protocol/solanum.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2023-11-14 15:02:04 +0000
committerSadie Powell <sadie@witchery.services>2023-11-14 15:02:04 +0000
commitb28180d680f974b7d3cf72667681b8cda6a39b0a (patch)
tree45ce01374a4eb95c7b9bca73f25bc28dfefb2721 /modules/protocol/solanum.cpp
parent0f1f0c5a221d199fefc38e116a98fb4ff2c0a4f3 (diff)
Implement support for the ANONYMOUS SASL mechanism.
Diffstat (limited to 'modules/protocol/solanum.cpp')
-rw-r--r--modules/protocol/solanum.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/protocol/solanum.cpp b/modules/protocol/solanum.cpp
index 1ba740d04..c01c4f551 100644
--- a/modules/protocol/solanum.cpp
+++ b/modules/protocol/solanum.cpp
@@ -43,6 +43,7 @@ class SolanumProto : public IRCDProto
CanSZLine = true;
CanSVSNick = true;
CanSVSHold = true;
+ CanSVSLogout = true;
CanSetVHost = true;
RequiresID = true;
MaxModes = 4;
@@ -158,8 +159,13 @@ class SolanumProto : public IRCDProto
void SendSVSLogin(const Anope::string &uid, NickAlias *na) override
{
Server *s = Server::Find(uid.substr(0, 3));
- UplinkSocket::Message(Me) << "ENCAP " << (s ? s->GetName() : uid.substr(0, 3)) << " SVSLOGIN " << uid << " * " << (!na->GetVhostIdent().empty() ? na->GetVhostIdent() : '*')
- << " " << (!na->GetVhostHost().empty() ? na->GetVhostHost() : '*') << " " << na->nc->display;
+
+ UplinkSocket::Message(Me) << "ENCAP " << (s ? s->GetName() : uid.substr(0, 3)) << " SVSLOGIN " << uid << " * "
+ << (na && !na->GetVhostIdent().empty() ? na->GetVhostIdent() : '*')
+ << " "
+ << (na && !na->GetVhostHost().empty() ? na->GetVhostHost() : '*')
+ << " "
+ << (na ? na->nc->display : "0");
}
};