summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-26 21:22:12 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-26 21:22:12 +0000
commitda3134547f97127bc92eeac76a9a8dece4a3e07e (patch)
tree09ff0a8d40af54c24888b47f56f6e7e23abee35a /src
parent320cfcc36374cd247ae1c3b30dab8b9b2e5acd67 (diff)
Fixed some weirdass whowas stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3352 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 3acc8f2a0..44f6d0cc6 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -394,7 +394,7 @@ void kill_link(userrec *user,const char* r)
log(DEBUG,"kill_link: %s '%s'",user->nick,reason);
Write(user->fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,reason);
- log(DEBUG,"closing fd %lu",(unsigned long)user->fd);
+ log(DEBUG,"closing fd %d",user->fd);
if (user->registered == 7) {
purge_empty_chans(user);
@@ -434,7 +434,7 @@ void kill_link(userrec *user,const char* r)
if (iter != clientlist.end())
{
- log(DEBUG,"deleting user hash value %lu",(unsigned long)user);
+ log(DEBUG,"deleting user hash value %lx",(unsigned long)user);
if (user->fd > -1)
{
fd_ref_table[user->fd] = NULL;
@@ -542,16 +542,16 @@ void AddWhoWas(userrec* u)
// 3600 seconds in an hour ;)
if ((i->second->signon)<(TIME-(WHOWAS_STALE*3600)))
{
- // delete the old one
+ // delete an old one
if (i->second) delete i->second;
+ whowas.erase(i);
// replace with new one
- i->second = a;
+ whowas[a->nick] = a;
log(DEBUG,"added WHOWAS entry, purged an old record");
return;
}
}
// no space left and user doesnt exist. Don't leave ram in use!
- log(DEBUG,"Not able to update whowas (list at WHOWAS_MAX entries and trying to add new?), freeing excess ram");
delete a;
}
else