From b7d4d9501e8fa7ed97d69bf89e4410d6b4908be9 Mon Sep 17 00:00:00 2001 From: jamie Date: Mon, 2 Oct 2006 21:58:10 +0000 Subject: Use InspIRCd::Time() instead of time() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5401 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 23f26647f..14e963f78 100644 --- a/src/modules/m_joinflood.cpp +++ b/src/modules/m_joinflood.cpp @@ -43,7 +43,7 @@ class joinfloodsettings : public classbase joinfloodsettings(int b, int c) : secs(b), joins(c) { - reset = time(NULL) + secs; + reset = InspIRCd::Time() + secs; counter = 0; locked = false; }; @@ -51,10 +51,10 @@ class joinfloodsettings : public classbase void addjoin() { counter++; - if (time(NULL) > reset) + if (InspIRCd::Time() > reset) { counter = 0; - reset = time(NULL) + secs; + reset = InspIRCd::Time() + secs; } } @@ -72,7 +72,7 @@ class joinfloodsettings : public classbase { if (locked) { - if (time(NULL) > unlocktime) + if (InspIRCd::Time() > unlocktime) { locked = false; return false; @@ -88,7 +88,7 @@ class joinfloodsettings : public classbase void lock() { locked = true; - unlocktime = time(NULL) + 60; + unlocktime = InspIRCd::Time() + 60; } }; -- cgit v1.2.3