diff options
author | Zoddo <zoddo.ino@gmail.com> | 2016-10-02 13:56:37 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-02 13:56:37 -0400 |
commit | ee7af884c7909c30839d7b6ceb47abdbdde4ed97 (patch) | |
tree | 6b300b9a6bb471286b63f3ed4b1e33d8cb1255b1 /modules/protocol/charybdis.cpp | |
parent | 33ef08b8a0fb910fa7fd99584dbae88630738a3e (diff) |
Send vident/vhost in SVSLOGIN with SASL
Diffstat (limited to 'modules/protocol/charybdis.cpp')
-rw-r--r-- | modules/protocol/charybdis.cpp | 4 |
1 files changed, 2 insertions, 2 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); } }; |