diff options
author | Zoddo <zoddo.ino@gmail.com> | 2016-04-10 18:24:25 +0200 |
---|---|---|
committer | Zoddo <zoddo.ino@gmail.com> | 2016-04-10 18:24:25 +0200 |
commit | 82816cb2061afa1c3b583a0d1941a37043388de0 (patch) | |
tree | d0b0dd729b09e7e899ff3a5a40d275a15e971440 /modules/protocol/charybdis.cpp | |
parent | 79e7c3f98a57b7cffc46d9a7dc250a0e6e25fc98 (diff) |
Send vident/vhost in SVSLOGIN with SASL
Only charybdis seems to support that for the moment.
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 41da42c76..4d4fa5ec0 100644 --- a/modules/protocol/charybdis.cpp +++ b/modules/protocol/charybdis.cpp @@ -159,10 +159,10 @@ class CharybdisProto : 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 << " * " << (!vident.empty() ? vident : '*') << " " << (!vhost.empty() ? vhost : '*') << " " << acc; } }; |