aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
authorGravatar brain2005-12-20 18:29:37 +0000
committerGravatar brain2005-12-20 18:29:37 +0000
commit87121e14e3606e97206dcf32795771f119c4a42b (patch)
tree8035aa90a744f1c22616f5a09045b51109a35770 /src/modules/m_spanningtree.cpp
parentAdded Socket = NULL for local server class to prevent it being 'selectable' b... (diff)
downloadinspircd++-87121e14e3606e97206dcf32795771f119c4a42b.tar.gz
inspircd++-87121e14e3606e97206dcf32795771f119c4a42b.tar.bz2
inspircd++-87121e14e3606e97206dcf32795771f119c4a42b.zip
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.cpp2
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());