From 76608ff23d515fbf5fcdbdc17b7f261339b2a276 Mon Sep 17 00:00:00 2001 From: Daniel Vassdal Date: Tue, 9 Sep 2014 21:40:47 +0200 Subject: capab: m_kicknorejoin: Don't advertise upper bound to 2.0 servers --- src/modules/m_spanningtree/capab.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index 047808c29..9035d89c9 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -33,6 +33,11 @@ std::string TreeSocket::MyModules(int filter) std::string capabilities; for (ModuleManager::ModuleMap::const_iterator i = modlist.begin(); i != modlist.end(); ++i) { + // 2.2 advertises its settings for the benefit of services + // 2.0 would bork on this + if (proto_version < 1205 && i->second->ModuleSourceFile == "m_kicknorejoin.so") + continue; + Version v = i->second->GetVersion(); if (!(v.Flags & filter)) continue; -- cgit v1.2.3