summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/compat.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-09-01 14:58:02 +0200
committerattilamolnar <attilamolnar@hush.com>2013-09-11 12:11:16 +0200
commit1f6ba902a6c45d84fcaf534d429ca1084ef35911 (patch)
treee5ef25abb300a33facd11c98c985abc0987e6ee9 /src/modules/m_spanningtree/compat.cpp
parent16398df07d4ce1f1d4a2e43d97bc39043f8d44b5 (diff)
Convert cmd_modenotice into an optional module
Diffstat (limited to 'src/modules/m_spanningtree/compat.cpp')
-rw-r--r--src/modules/m_spanningtree/compat.cpp7
1 files changed, 7 insertions, 0 deletions
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
}