From ef703c9e8674cffae41460bd16003f432e3bbd2e Mon Sep 17 00:00:00 2001 From: jamie Date: Wed, 4 Oct 2006 21:25:42 +0000 Subject: Eugh. Revert change InspIRCd::Time() -> time() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5416 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_joinflood.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp index 1290e9980..e73d2f138 100644 --- a/src/modules/m_joinflood.cpp +++ b/src/modules/m_joinflood.cpp @@ -44,7 +44,7 @@ class joinfloodsettings : public classbase joinfloodsettings(int b, int c) : secs(b), joins(c) { - reset = ServerInstance->Time() + secs; + reset = time(NULL) + secs; counter = 0; locked = false; }; @@ -52,10 +52,10 @@ class joinfloodsettings : public classbase void addjoin() { counter++; - if (ServerInstance->Time() > reset) + if (time(NULL) > reset) { counter = 0; - reset = ServerInstance->Time() + secs; + reset = time(NULL) + secs; } } @@ -73,7 +73,7 @@ class joinfloodsettings : public classbase { if (locked) { - if (ServerInstance->Time() > unlocktime) + if (time(NULL) > unlocktime) { locked = false; return false; @@ -89,7 +89,7 @@ class joinfloodsettings : public classbase void lock() { locked = true; - unlocktime = ServerInstance->Time() + 60; + unlocktime = time(NULL) + 60; } }; -- cgit v1.2.3