diff options
| author | Adam <adam@sigterm.info> | 2016-03-15 17:41:48 -0500 |
|---|---|---|
| committer | Adam <adam@sigterm.info> | 2016-03-15 17:41:48 -0500 |
| commit | 448967cefc6c718c139993157d9679650e0d1540 (patch) | |
| tree | f443ca0f54aa70e527727bc7c16f64651a1758b0 /modules/protocol | |
| parent | 979027138be9cdc34af5d7247e1ee218715f0d54 (diff) | |
| parent | 52fdc455976e22e860736b07c431c6a6464f5d70 (diff) | |
Merge pull request #156 from SaberUK/2.0+sasl-mechlist
Implement support for SASL 3.2 mechanism lists.
Diffstat (limited to 'modules/protocol')
| -rw-r--r-- | modules/protocol/inspircd20.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp index c54cfe184..a295ee999 100644 --- a/modules/protocol/inspircd20.cpp +++ b/modules/protocol/inspircd20.cpp @@ -42,6 +42,15 @@ class InspIRCd20Proto : public IRCDProto insp12->SendConnect(); } + void SendSASLMechanisms(std::vector<Anope::string> &mechanisms) anope_override + { + Anope::string mechlist; + for (unsigned i = 0; i < mechanisms.size(); ++i) + mechlist += "," + mechanisms[i]; + + UplinkSocket::Message(Me) << "METADATA * saslmechlist :" << (mechanisms.empty() ? "" : mechlist.substr(1)); + } + void SendSVSKillInternal(const MessageSource &source, User *user, const Anope::string &buf) anope_override { insp12->SendSVSKillInternal(source, user, buf); } void SendGlobalNotice(BotInfo *bi, const Server *dest, const Anope::string &msg) anope_override { insp12->SendGlobalNotice(bi, dest, msg); } void SendGlobalPrivmsg(BotInfo *bi, const Server *dest, const Anope::string &msg) anope_override { insp12->SendGlobalPrivmsg(bi, dest, msg); } |
