diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-24 12:14:26 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-24 12:14:26 +0000 |
commit | 21f4b3a7bf34328d3c588ff2f9b74e8e3ee735e5 (patch) | |
tree | 53d876cca7c380cf68f8b4ce027624c21b902c0e /src/userprocess.cpp | |
parent | 873b749ddc53a6d7f124ae6c5d8eb373dfb1f540 (diff) |
Convert some ancient GlobalCulls usage into userrec::QuitUser
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7534 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r-- | src/userprocess.cpp | 4 |
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); |