diff options
author | Adam <adam@sigterm.info> | 2016-04-14 19:17:39 -0500 |
---|---|---|
committer | Adam <adam@sigterm.info> | 2016-04-14 19:17:39 -0500 |
commit | a8f66578b1a7ee748cd67acff7f8f3f3324c0a6b (patch) | |
tree | 672e47f819dda557e1fe8e9677ea5678bff2bd94 /modules/protocol/charybdis.cpp | |
parent | ca39aeb554ccfd394ba63666dca6118a826479f3 (diff) | |
parent | 82816cb2061afa1c3b583a0d1941a37043388de0 (diff) |
Merge pull request #161 from Zoddo/charybdis/vhost_svslogin
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 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; } }; |