summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorGravatar w00t2007-07-24 12:30:04 +0000
committerGravatar w00t2007-07-24 12:30:04 +0000
commitbaeb7052e853622477f9f147b389fcff6862fee5 (patch)
treeda5fa5515743f1b8cee5484d49e935e9bcb0f9a3 /src/userprocess.cpp
parentMerge r7531 from trunk. (diff)
Merge 7533-7535 from trunk
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7536 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 96eba0469..df422c721 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -224,7 +224,7 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME)
if ((TIME > curr->timeout) && (curr->registered != REG_ALL))
{
curr->muted = true;
- GlobalCulls.AddItem(curr,"Registration timeout");
+ userrec::QuitUser(this, curr, "Registration timeout");
continue;
}
else
@@ -277,9 +277,9 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME)
char message[MAXBUF];
snprintf(message, MAXBUF, "Ping timeout: %ld second%s", (long)time, time > 1 ? "s" : "");
curr->muted = true;
- GlobalCulls.AddItem(curr, message);
curr->lastping = 1;
curr->nping = TIME+curr->pingmax;
+ userrec::QuitUser(this, curr, message);
continue;
}
curr->Write("PING :%s",this->Config->ServerName);