diff options
author | Adam <adam@sigterm.info> | 2017-10-09 11:29:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-09 11:29:55 -0400 |
commit | 2e7fcd3098fe618d5d5d72697156707e87620851 (patch) | |
tree | df26b5d33844ed7f48133bcaa12979687b9cd8a9 /modules/protocol/unreal4.cpp | |
parent | 884759aed40fe1ccf68355eb676bcd8ef600f7d1 (diff) | |
parent | 0093f3fa44d5320457577e80682a153ce526e8e9 (diff) |
Merge pull request #199 from syzop/2.0+unrealsaslmechs
Advertise SASL mechanisms to UnrealIRCd servers.
Diffstat (limited to 'modules/protocol/unreal4.cpp')
-rw-r--r-- | modules/protocol/unreal4.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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<Anope::string> &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 { |