]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/compat.cpp
Remove m_silence pending a complete rewrite.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / compat.cpp
index 17b44f896a0155a96def168997390e1f95c1e004..aacae5deab8a65fc9781c056ee723c393b0ff303 100644 (file)
@@ -42,7 +42,7 @@ void TreeSocket::WriteLine(const std::string& original_line)
                        if (line[0] == '@')
                        {
                                // The line contains tags which the 1202 protocol can't handle.
-                               line.erase(0, a);
+                               line.erase(0, a + 1);
                                a = line.find(' ');
                        }
                        std::string::size_type b = line.find(' ', a + 1);
@@ -519,6 +519,11 @@ bool TreeSocket::PreProcessOldProtocolMessage(User*& who, std::string& cmd, Comm
                // SVSWATCH was removed because nothing was using it, but better be sure
                return false;
        }
+       else if (cmd == "SVSSILENCE")
+       {
+               // SVSSILENCE was removed because nothing was using it, but better be sure
+               return false;
+       }
        else if (cmd == "PUSH")
        {
                if ((params.size() != 2) || (!this->MyRoot))