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

Remove CanSVSLogout and implement logout support on Plexus.

This commit is contained in:
Sadie Powell
2024-05-09 18:53:43 +01:00
parent 33a02b1223
commit c36030c826
6 changed files with 9 additions and 15 deletions
+9 -1
View File
@@ -187,7 +187,15 @@ public:
void SendSVSLogin(const Anope::string &uid, NickAlias *na) override
{
Server *s = Server::Find(uid.substr(0, 3));
Uplink::Send("ENCAP", s ? s->GetName() : uid.substr(0, 3), "SVSLOGIN", uid, '*', '*', na->GetVHostHost().empty() ? "*" : na->GetVHostHost(), na->nc->display);
Anope::string target = s ? s->GetName() : uid.substr(0, 3);
if (na)
{
Uplink::Send("ENCAP", target, "SVSLOGIN", uid, '*', '*', na->GetVHostHost().empty() ? "*" : na->GetVHostHost(), na->nc->display);
}
else
{
Uplink::Send("ENCAP", target, "SU", uid, "");
}
}
void SendSVSNOOP(const Server *server, bool set) override