diff options
| author | 2010-03-04 10:39:47 -0600 | |
|---|---|---|
| committer | 2010-08-03 17:32:38 -0400 | |
| commit | 4351678065e1e0f2bb5cf3c7eb7e2f17b6470833 (patch) | |
| tree | c9fccb8db746baaece66399388748da2a351ca15 /src/modules/m_spanningtree/compat.cpp | |
| parent | Drop useless default OnModeChange handler (diff) | |
Add RESYNC command to allow automatic recovery from a detected desync
Diffstat (limited to 'src/modules/m_spanningtree/compat.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/compat.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp index 9e48804c3..d10d0ce9f 100644 --- a/src/modules/m_spanningtree/compat.cpp +++ b/src/modules/m_spanningtree/compat.cpp @@ -143,6 +143,11 @@ void TreeSocket::WriteLine(std::string line) line.erase(b,c-b); } } + else if (proto_version < 1203 && command == "RESYNC") + { + // drop the command. 2.0 and earlier cannot automatically recover from desync + return; + } else if (proto_version < 1202 && command == "ENCAP") { // :src ENCAP target command [args...] |
