]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree.cpp
Added extra sanity check in squit to make sure REMOTE Servers dont try and squit...
[user/henk/code/inspircd.git] / src / modules / m_spanningtree.cpp
index db529e08ed2989f51cc6eb513cd14abe133c6818..dc318b2c53a9e49535de698e846c5e027c5b9a88 100644 (file)
@@ -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());