summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-05-24 11:17:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-05-24 11:17:51 +0000
commitfafdecbee9e10749a463e7ae9dd305ce6b2d877e (patch)
tree479ba7d13cc552e8b86adb2f63bb1797984c7b6d /src/modules/m_spanningtree.cpp
parent4b40b54d80ced77d092aa7890b2bd07b364c9a9f (diff)
More debugging
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3968 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp9
1 files changed, 8 insertions, 1 deletions
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<userrec*,userrec*>::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<userrec*,userrec*>::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<userrec*,userrec*>::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();
}