diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-10 15:35:52 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-10 15:35:52 +0000 |
commit | 07bd0f4f16b8d9e172d9d5aa438cd5a72712bc5f (patch) | |
tree | 539d8803e590c6b06a0251735b26917ccea87616 /src | |
parent | f2b3537ee93ecd718b1146d17c4de730f44c8366 (diff) |
Added anti-newbie warning, if attempt is made to use old-style linking protocol with m_spanningtree, error "Cannot use the old-style mesh linking protocol with m_spanningtree.so!" is given.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2765 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 8e7fb4264..f2137e1d0 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1878,6 +1878,11 @@ class TreeSocket : public InspSocket { return this->Capab(params); } + else if ((command == "U") || (command == "S")) + { + this->WriteLine("ERROR :Cannot use the old-style mesh linking protocol with m_spanningtree.so!"); + return false; + } else { this->WriteLine("ERROR :Invalid command in negotiation phase."); @@ -1893,6 +1898,11 @@ class TreeSocket : public InspSocket // silently ignore. return true; } + else if ((command == "U") || (command == "S")) + { + this->WriteLine("ERROR :Cannot use the old-style mesh linking protocol with m_spanningtree.so!"); + return false; + } else if (command == "BURST") { this->LinkState = CONNECTED; |