diff options
| author | 2010-03-04 17:02:32 -0600 | |
|---|---|---|
| committer | 2010-08-03 17:32:39 -0400 | |
| commit | 1ada28ab2218d5e0b2f9505e81625a352a175f7d (patch) | |
| tree | 768fa3061ca30ed9ee3b3ce9d3cb2b55ce20677d /src/userprocess.cpp | |
| parent | Allow <oper:classes> to specify classes in addition to <type:classes> (diff) | |
Change connect class inheritance to use references, allows conn_umode and conn_join to inherit
Diffstat (limited to 'src/userprocess.cpp')
| -rw-r--r-- | src/userprocess.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp index ed7f5ac22..9239d752e 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -39,7 +39,7 @@ void InspIRCd::DoBackgroundUserStuff() if (curr->CommandFloodPenalty) { - unsigned int rate = curr->MyClass->GetCommandRate(); + unsigned int rate = curr->MyClass->commandrate; if (curr->CommandFloodPenalty > rate) curr->CommandFloodPenalty -= rate; else @@ -55,18 +55,18 @@ void InspIRCd::DoBackgroundUserStuff() // This user didn't answer the last ping, remove them if (!curr->lastping) { - time_t time = this->Time() - (curr->nping - curr->MyClass->GetPingTime()); + time_t time = this->Time() - (curr->nping - curr->MyClass->pingtime); char message[MAXBUF]; snprintf(message, MAXBUF, "Ping timeout: %ld second%s", (long)time, time > 1 ? "s" : ""); curr->lastping = 1; - curr->nping = Time() + curr->MyClass->GetPingTime(); + curr->nping = Time() + curr->MyClass->pingtime; this->Users->QuitUser(curr, message); continue; } curr->Write("PING :%s",this->Config->ServerName.c_str()); curr->lastping = 0; - curr->nping = Time() +curr->MyClass->GetPingTime(); + curr->nping = Time() +curr->MyClass->pingtime; } break; case REG_NICKUSER: @@ -79,7 +79,7 @@ void InspIRCd::DoBackgroundUserStuff() break; } - if (curr->registered != REG_ALL && (Time() > (curr->age + curr->MyClass->GetRegTimeout()))) + if (curr->registered != REG_ALL && (Time() > (curr->age + curr->MyClass->registration_timeout))) { /* * registration timeout -- didnt send USER/NICK/HOST |
