diff options
author | Toni Kaija <diftraku@gmail.com> | 2016-10-02 13:27:48 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-02 13:27:48 -0400 |
commit | 4c5ee25bc68617ce284fcf17cfd7022d561d9210 (patch) | |
tree | e1d76fab0848ce1d334373eeb0e9a06feac5f5b1 /modules/protocol/charybdis.cpp | |
parent | ffc7fc3a24899f42cd59d049884ba8b4ee6e54a9 (diff) |
proto/charybdis: Add support for MECHLIST
Diffstat (limited to 'modules/protocol/charybdis.cpp')
-rw-r--r-- | modules/protocol/charybdis.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/protocol/charybdis.cpp b/modules/protocol/charybdis.cpp index f6cb2f29a..06f482ae6 100644 --- a/modules/protocol/charybdis.cpp +++ b/modules/protocol/charybdis.cpp @@ -155,6 +155,18 @@ class CharybdisProto : public IRCDProto this->SendVhost(u, "", u->host); } + void SendSASLMechanisms(std::vector<Anope::string> &mechanisms) override + { + Anope::string mechlist; + + for (unsigned i = 0; i < mechanisms.size(); ++i) + { + mechlist += "," + mechanisms[i]; + } + + Uplink::Send(Me, "ENCAP", "*", "MECHLIST", mechlist.empty() ? "" : mechlist.substr(1)); + } + void SendSASLMessage(const SASL::Message &message) override { Server *s = Server::Find(message.target.substr(0, 3)); |