From 1ada28ab2218d5e0b2f9505e81625a352a175f7d Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Thu, 4 Mar 2010 17:02:32 -0600 Subject: Change connect class inheritance to use references, allows conn_umode and conn_join to inherit --- src/userprocess.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/userprocess.cpp') 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 -- cgit v1.3.1-10-gc9f91