summaryrefslogtreecommitdiff
path: root/src/command_parse.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/command_parse.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/command_parse.cpp')
-rw-r--r--src/command_parse.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 6db10658b..0c3f29a25 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -225,17 +225,17 @@ void CommandParser::DoLines(User* current, bool one_only)
{
if (ServerInstance->Time() > current->reset_due)
{
- current->reset_due = ServerInstance->Time() + current->threshold;
+ current->reset_due = ServerInstance->Time() + current->MyClass->GetThreshold();
current->lines_in = 0;
}
- if (++current->lines_in > current->flood && current->flood)
+ if (++current->lines_in > current->MyClass->GetFlood() && current->MyClass->GetFlood())
{
ServerInstance->FloodQuitUser(current);
return;
}
- if ((++floodlines > current->flood) && (current->flood != 0))
+ if ((++floodlines > current->MyClass->GetFlood()) && (current->MyClass->GetFlood() != 0))
{
ServerInstance->FloodQuitUser(current);
return;
@@ -319,7 +319,7 @@ bool CommandParser::ProcessCommand(User *user, std::string &cmd)
}
/* activity resets the ping pending timer */
- user->nping = ServerInstance->Time() + user->pingmax;
+ user->nping = ServerInstance->Time() + user->MyClass->GetPingTime();
if (cm->second->flags_needed)
{
if (!user->IsModeSet(cm->second->flags_needed))