aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-07-30 11:09:30 +0000
committerGravatar brain2006-07-30 11:09:30 +0000
commite7af7bb4559bcf5266123939726d32286c85218c (patch)
tree5f57ee459e5b441ff8581debcb2cde3de738fae5 /src/users.cpp
parentFix more timedban stuff - possible infinite loop if ban expires after the cha... (diff)
Extra debugging just in case we need it
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4593 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 0127f9b83..73b269c97 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -470,9 +470,11 @@ void kill_link(userrec *user,const char* r)
WriteCommonExcept(user,"QUIT :%s",reason);
}
+ log(DEBUG,"Flush write buf");
if (IS_LOCAL(user))
user->FlushWriteBuf();
+ log(DEBUG,"Call disconnect");
FOREACH_MOD(I_OnUserDisconnect,OnUserDisconnect(user));
if (IS_LOCAL(user))
@@ -488,7 +490,9 @@ void kill_link(userrec *user,const char* r)
log(DEBUG,"Module exception cought: %s",modexcept.GetReason());
}
}
+ log(DEBUG,"Del FD from socketengine");
ServerInstance->SE->DelFd(user->fd);
+ log(DEBUG,"Close user socket");
user->CloseSocket();
}
@@ -498,6 +502,7 @@ void kill_link(userrec *user,const char* r)
// fix by brain: only show local quits because we only show local connects (it just makes SENSE)
if (IS_LOCAL(user))
WriteOpers("*** Client exiting: %s!%s@%s [%s]",user->nick,user->ident,user->host,reason);
+ log(DEBUG,"Add whowas");
AddWhoWas(user);
}
@@ -506,6 +511,7 @@ void kill_link(userrec *user,const char* r)
log(DEBUG,"deleting user hash value %lx",(unsigned long)user);
if (IS_LOCAL(user))
{
+ log(DEBUG,"Null fd %d",user->fd);
fd_ref_table[user->fd] = NULL;
if (find(local_users.begin(),local_users.end(),user) != local_users.end())
{
@@ -513,6 +519,7 @@ void kill_link(userrec *user,const char* r)
log(DEBUG,"Delete local user");
}
}
+ log(DEBUG,"Erase clientlist entry");
clientlist.erase(iter);
delete user;
}