summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjamie <jamie@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-04 21:25:42 +0000
committerjamie <jamie@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-04 21:25:42 +0000
commitef703c9e8674cffae41460bd16003f432e3bbd2e (patch)
tree1ee9bdacc17684b3d5b8c7c9ab78a048c3a423c0
parent361e7957fee01a74a195ef431e8958c2216f7744 (diff)
Eugh. Revert change InspIRCd::Time() -> time()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5416 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_joinflood.cpp10
1 files changed, 5 insertions, 5 deletions
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;
}
};