From 5d309d46e1d9980f36a5775ffdc65185685c4e81 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 10 Oct 2017 21:19:23 -0400 Subject: [PATCH] plexus: fix overriding SendSVSLogin --- modules/protocol/plexus.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/protocol/plexus.cpp b/modules/protocol/plexus.cpp index 525ef4320..14da1d697 100644 --- a/modules/protocol/plexus.cpp +++ b/modules/protocol/plexus.cpp @@ -174,10 +174,11 @@ class PlexusProto : public IRCDProto UplinkSocket::Message(Me) << "ENCAP " << (s ? s->GetName() : message.target.substr(0, 3)) << " SASL " << message.source << " " << message.target << " " << message.type << " " << message.data << (message.ext.empty() ? "" : (" " + message.ext)); } - void SendSVSLogin(const Anope::string &uid, const Anope::string &acc) anope_override + void SendSVSLogin(const Anope::string &uid, const Anope::string &acc, const Anope::string &vident, const Anope::string &vhost) anope_override { Server *s = Server::Find(uid.substr(0, 3)); - UplinkSocket::Message(Me) << "ENCAP " << (s ? s->GetName() : uid.substr(0, 3)) << " SVSLOGIN " << uid << " * * * " << acc; + UplinkSocket::Message(Me) << "ENCAP " << (s ? s->GetName() : uid.substr(0, 3)) << " SVSLOGIN " << uid << " * * " + << (vhost.empty() ? "*" : vhost) << " " << acc; } void SendSVSNOOP(const Server *server, bool set) anope_override