diff options
author | jamie <jamie@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-02 21:58:10 +0000 |
---|---|---|
committer | jamie <jamie@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-02 21:58:10 +0000 |
commit | b7d4d9501e8fa7ed97d69bf89e4410d6b4908be9 (patch) | |
tree | 9a1cef25925d5e4e8b88557a1a6a57e8ad18e987 /src | |
parent | 89adf128523abbb57c2fd7f964115fec01bc00c0 (diff) |
Use InspIRCd::Time() instead of time()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5401 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_joinflood.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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; } }; |