diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-20 18:29:37 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-20 18:29:37 +0000 |
commit | 87121e14e3606e97206dcf32795771f119c4a42b (patch) | |
tree | 8035aa90a744f1c22616f5a09045b51109a35770 /src/modules/m_spanningtree.cpp | |
parent | 5af57c7868b4601ffceff690326dd1d91b4332d7 (diff) |
Added extra sanity check in squit to make sure REMOTE Servers dont try and squit a server from itself!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2590 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index db529e08e..dc318b2c5 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -715,7 +715,7 @@ class TreeSocket : public InspSocket */ void Squit(TreeServer* Current,std::string reason) { - if (Current) + if ((Current) && (Current != TreeRoot)) { std::deque<std::string> params; params.push_back(Current->GetName()); |