From 0093f3fa44d5320457577e80682a153ce526e8e9 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Mon, 9 Oct 2017 10:22:50 +0200 Subject: Advertise SASL mechanisms to UnrealIRCd servers. --- modules/protocol/unreal4.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/protocol/unreal4.cpp') diff --git a/modules/protocol/unreal4.cpp b/modules/protocol/unreal4.cpp index 95618a1c7..2da54bac9 100644 --- a/modules/protocol/unreal4.cpp +++ b/modules/protocol/unreal4.cpp @@ -231,6 +231,15 @@ class UnrealIRCdProto : public IRCDProto SendServer(Me); } + void SendSASLMechanisms(std::vector &mechanisms) anope_override + { + Anope::string mechlist; + for (unsigned i = 0; i < mechanisms.size(); ++i) + mechlist += "," + mechanisms[i]; + + UplinkSocket::Message() << "MD client " << Me->GetName() << " saslmechlist :" << (mechanisms.empty() ? "" : mechlist.substr(1)); + } + /* SVSHOLD - set */ void SendSVSHold(const Anope::string &nick, time_t t) anope_override { -- cgit