From 1f6ba902a6c45d84fcaf534d429ca1084ef35911 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 1 Sep 2013 14:58:02 +0200 Subject: Convert cmd_modenotice into an optional module --- src/modules/m_spanningtree/compat.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/modules/m_spanningtree/compat.cpp') diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp index 02e11c849..f3d6ac66a 100644 --- a/src/modules/m_spanningtree/compat.cpp +++ b/src/modules/m_spanningtree/compat.cpp @@ -286,6 +286,13 @@ bool TreeSocket::PreProcessOldProtocolMessage(User*& who, std::string& cmd, std: params.insert(params.begin()+2, ConvToStr(ServerInstance->Time())); } + else if (cmd == "MODENOTICE") + { + // MODENOTICE is always supported by 2.0 but it's optional in 2.2. + params.insert(params.begin(), "*"); + params.insert(params.begin()+1, cmd); + cmd = "ENCAP"; + } return true; // Passthru } -- cgit v1.2.3