From 52fdc455976e22e860736b07c431c6a6464f5d70 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 20 Feb 2016 16:59:21 +0000 Subject: Implement support for SASL 3.2 mechanism lists. --- modules/protocol/inspircd20.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/protocol') 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 &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); } -- cgit