From d73ed5739624deafbc7574e67b22d75fbbacc309 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 5 Dec 2005 22:14:12 +0000 Subject: Debug junk git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2207 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index b63106588..d12966025 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -100,7 +100,7 @@ class TreeServer VersionString = ""; UserCount = OperCount = 0; VersionString = GetVersionString(); - Route = this; + Route = NULL; } TreeServer(std::string Name, std::string Desc, TreeServer* Above, TreeSocket* Sock) : Parent(Above), ServerName(Name), ServerDesc(Desc), Socket(Sock) @@ -110,14 +110,20 @@ class TreeServer this->SetNextPingTime(time(NULL) + 60); this->SetPingFlag(); - log(DEBUG,"*** CREATE NEW SERVER %s",Name.c_str()); + log(DEBUG,"*** CREATE NEW SERVER %s ABOVE IS %s",Name.c_str(),Above->GetName().c_str()); // find the 'route' for this server (e.g. the one directly connected // to the local server, which we can use to reach it) Route = Above; if (Route != TreeRoot) + { + log(DEBUG,"(1) Route is %s",Route->GetName().c_str()); while (Route->GetParent() != TreeRoot) + { Route = Route->GetParent(); + log(DEBUG,"(2) Route is %s",Route->GetName().c_str()); + } + } log(DEBUG," ROUTE FOR %s is %s",Name.c_str(),Route->GetName().c_str()); } -- cgit v1.2.3