diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-05 22:14:12 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-05 22:14:12 +0000 |
commit | d73ed5739624deafbc7574e67b22d75fbbacc309 (patch) | |
tree | 6918b5afc0ec7e97360aa90a41b55f2f7d033b8e | |
parent | 8275360c1614c305767d449755a4853d6a06cd9c (diff) |
Debug junk
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2207 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_spanningtree.cpp | 10 |
1 files 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()); } |