summaryrefslogtreecommitdiff
path: root/modules/protocol
diff options
context:
space:
mode:
authorZoddo <zoddo.ino@gmail.com>2016-10-02 13:56:37 -0400
committerAdam <Adam@anope.org>2016-10-02 13:56:37 -0400
commitee7af884c7909c30839d7b6ceb47abdbdde4ed97 (patch)
tree6b300b9a6bb471286b63f3ed4b1e33d8cb1255b1 /modules/protocol
parent33ef08b8a0fb910fa7fd99584dbae88630738a3e (diff)
Send vident/vhost in SVSLOGIN with SASL
Diffstat (limited to 'modules/protocol')
-rw-r--r--modules/protocol/charybdis.cpp4
-rw-r--r--modules/protocol/inspircd20.cpp2
-rw-r--r--modules/protocol/unreal.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/modules/protocol/charybdis.cpp b/modules/protocol/charybdis.cpp
index ccc36b48d..1f3cb801d 100644
--- a/modules/protocol/charybdis.cpp
+++ b/modules/protocol/charybdis.cpp
@@ -173,10 +173,10 @@ class CharybdisProto : public IRCDProto
Uplink::Send(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) override
+ void SendSVSLogin(const Anope::string &uid, const Anope::string &acc, const Anope::string &vident, const Anope::string &vhost) override
{
Server *s = Server::Find(uid.substr(0, 3));
- Uplink::Send(Me, "ENCAP", s ? s->GetName() : uid.substr(0, 3), "SVSLOGIN", uid, "*", "*", "*", acc);
+ Uplink::Send(Me, "ENCAP", s ? s->GetName() : uid.substr(0, 3), "SVSLOGIN", uid, "*", vident.empty() ? "*" : vident, vhost.empty() ? "*" : vhost, acc);
}
};
diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp
index f4dfcb12f..f8bf9b30e 100644
--- a/modules/protocol/inspircd20.cpp
+++ b/modules/protocol/inspircd20.cpp
@@ -422,7 +422,7 @@ class InspIRCd20Proto : public IRCDProto
message.type, message.data);
}
- void SendSVSLogin(const Anope::string &uid, const Anope::string &acc) override
+ void SendSVSLogin(const Anope::string &uid, const Anope::string &acc, const Anope::string &vident, const Anope::string &vhost) override
{
Uplink::Send(Me, "METADATA", uid, "accountname", acc);
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp
index fe5ddad2d..d805e60cb 100644
--- a/modules/protocol/unreal.cpp
+++ b/modules/protocol/unreal.cpp
@@ -394,7 +394,7 @@ class UnrealIRCdProto : public IRCDProto
Uplink::Send(ServiceBot::Find(message.source), "SASL", message.target.substr(0, p), message.target, message.type, message.data);
}
- void SendSVSLogin(const Anope::string &uid, const Anope::string &acc) override
+ void SendSVSLogin(const Anope::string &uid, const Anope::string &acc, const Anope::string &vident, const Anope::string &vhost) override
{
size_t p = uid.find('!');
if (p == Anope::string::npos)