From fafdecbee9e10749a463e7ae9dd305ce6b2d877e Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 24 May 2006 11:17:51 +0000 Subject: More debugging git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3968 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree.cpp') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 7a59960f4..3128a87bc 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -269,7 +269,10 @@ class TreeServer void AddUser(userrec* user) { if (this->DontModifyHash) + { + log(DEBUG,"Not modifying hash"); return; + } log(DEBUG,"Add user %s to server %s",user->nick,this->ServerName.c_str()); std::map::iterator iter; @@ -286,7 +289,10 @@ class TreeServer * When netsplitting, this->DontModifyHash is set to prevent it now! */ if (this->DontModifyHash) + { + log(DEBUG,"Not modifying hash"); return; + } log(DEBUG,"Remove user %s from server %s",user->nick,this->ServerName.c_str()); std::map::iterator iter; @@ -298,7 +304,7 @@ class TreeServer int QuitUsers(const std::string &reason) { int x = Users.size(); - log(DEBUG,"Removing all users from server %s",this->ServerName.c_str()); + log(DEBUG,"Removing %d users from server %s",x,this->ServerName.c_str()); const char* reason_s = reason.c_str(); this->DontModifyHash = true; for (std::map::iterator n = Users.begin(); n != Users.end(); n++) @@ -1198,6 +1204,7 @@ class TreeSocket : public InspSocket TreeServer* SourceServer = FindServer(source); if (SourceServer) { + log(DEBUG,"Found source server of %s",clientlist[tempnick]->nick); SourceServer->AddUser(clientlist[tempnick]); SourceServer->AddUserCount(); } -- cgit v1.2.3