From 07bd0f4f16b8d9e172d9d5aa438cd5a72712bc5f Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 10 Jan 2006 15:35:52 +0000 Subject: 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 --- src/modules/m_spanningtree.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') 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; -- cgit v1.2.3