summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-23 23:54:24 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-23 23:54:24 +0000
commit5b80dc83fdb6b7952e452a8eb2355005fdb5366c (patch)
treedc673bae45908b8169f91d973376d1f5ff56b833 /src/userprocess.cpp
parentc43805606f43b3b93e76ef9a250eb0ea367b980a (diff)
Move some stuff from using userrec cached stuff to using stuff in the connect classes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8339 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 70f0e246f..a3c8bc305 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -104,13 +104,13 @@ void ProcessUserHandler::Call(User* cu)
// Make sure they arn't flooding long lines.
if (Server->Time() > current->reset_due)
{
- current->reset_due = Server->Time() + current->threshold;
+ current->reset_due = Server->Time() + current->MyClass->GetThreshold();
current->lines_in = 0;
}
current->lines_in++;
- if (current->flood && current->lines_in > current->flood)
+ if (current->MyClass->GetFlood() && current->lines_in > current->MyClass->GetFlood())
Server->FloodQuitUser(current);
else
{
@@ -210,18 +210,18 @@ void InspIRCd::DoBackgroundUserStuff()
// This user didn't answer the last ping, remove them
if (!curr->lastping)
{
- time_t time = this->Time(false) - (curr->nping - curr->pingmax);
+ time_t time = this->Time(false) - (curr->nping - curr->MyClass->GetPingTime());
char message[MAXBUF];
snprintf(message, MAXBUF, "Ping timeout: %ld second%s", (long)time, time > 1 ? "s" : "");
curr->muted = true;
curr->lastping = 1;
- curr->nping = TIME+curr->pingmax;
+ curr->nping = TIME + curr->MyClass->GetPingTime();
User::QuitUser(this, curr, message);
continue;
}
curr->Write("PING :%s",this->Config->ServerName);
curr->lastping = 0;
- curr->nping = TIME+curr->pingmax;
+ curr->nping = TIME +curr->MyClass->GetPingTime();
}
}
}