From 29b51086b95c86f812ac35ed7d3333f060ba5a8c Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 22 Feb 2008 16:40:02 +0000 Subject: Nuke TIMESYNC from orbit \o/ git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8998 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 9748e9472..f4ec4e8bd 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -339,7 +339,6 @@ InspIRCd::InspIRCd(int argc, char** argv) this->Config->operclass.clear(); this->TIME = this->OLDTIME = this->startup_time = time(NULL); - this->time_delta = 0; srand(this->TIME); *this->LogFileName = 0; @@ -740,26 +739,11 @@ bool InspIRCd::AllModulesReportReady(User* user) return true; } -time_t InspIRCd::Time(bool delta) +time_t InspIRCd::Time() { - if (delta) - return TIME + time_delta; return TIME; } -int InspIRCd::SetTimeDelta(int delta) -{ - int old = time_delta; - time_delta = delta; - this->Log(DEBUG, "Time delta set to %d (was %d)", time_delta, old); - return old; -} - -int InspIRCd::GetTimeDelta() -{ - return time_delta; -} - void InspIRCd::SetSignal(int signal) { *mysig = signal; -- cgit v1.2.3