summaryrefslogtreecommitdiff
path: root/src/modes
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 09:23:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 09:23:46 +0000
commit76ebc88ccd6fef0bf2d97b607829fb3466e273af (patch)
tree6b02e7979ce1c4bf75cfc6e59d9de534ccf22827 /src/modes
parent488932d457b16a778d75cf2a8213dd9a94058403 (diff)
extern time_t TIME -> InspIRCd::Time()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4873 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modes')
-rw-r--r--src/modes/cmode_b.cpp4
-rw-r--r--src/modes/cmode_h.cpp2
-rw-r--r--src/modes/cmode_o.cpp2
-rw-r--r--src/modes/cmode_v.cpp2
4 files changed, 1 insertions, 9 deletions
diff --git a/src/modes/cmode_b.cpp b/src/modes/cmode_b.cpp
index f265c1094..d8f75220d 100644
--- a/src/modes/cmode_b.cpp
+++ b/src/modes/cmode_b.cpp
@@ -13,8 +13,6 @@
#include "hashcomp.h"
#include "modes/cmode_b.h"
-extern time_t TIME;
-
ModeChannelBan::ModeChannelBan(InspIRCd* Instance) : ModeHandler(Instance, 'b', 1, 1, true, MODETYPE_CHANNEL, false)
{
}
@@ -91,7 +89,7 @@ std::string& ModeChannelBan::AddBan(userrec *user,std::string &dest,chanrec *cha
}
}
- b.set_time = TIME;
+ b.set_time = ServerInstance->Time();
strlcpy(b.data,dest.c_str(),MAXBUF);
if (*user->nick)
{
diff --git a/src/modes/cmode_h.cpp b/src/modes/cmode_h.cpp
index 493d4f776..4b4730d52 100644
--- a/src/modes/cmode_h.cpp
+++ b/src/modes/cmode_h.cpp
@@ -14,8 +14,6 @@
#include "hashcomp.h"
#include "modes/cmode_h.h"
-extern time_t TIME;
-
ModeChannelHalfOp::ModeChannelHalfOp(InspIRCd* Instance) : ModeHandler(Instance, 'h', 1, 1, true, MODETYPE_CHANNEL, false)
{
}
diff --git a/src/modes/cmode_o.cpp b/src/modes/cmode_o.cpp
index 528cd4ede..63588b456 100644
--- a/src/modes/cmode_o.cpp
+++ b/src/modes/cmode_o.cpp
@@ -14,8 +14,6 @@
#include "hashcomp.h"
#include "modes/cmode_o.h"
-extern time_t TIME;
-
ModeChannelOp::ModeChannelOp(InspIRCd* Instance) : ModeHandler(Instance, 'o', 1, 1, true, MODETYPE_CHANNEL, false)
{
}
diff --git a/src/modes/cmode_v.cpp b/src/modes/cmode_v.cpp
index c834c47fd..26e176bc5 100644
--- a/src/modes/cmode_v.cpp
+++ b/src/modes/cmode_v.cpp
@@ -14,8 +14,6 @@
#include "hashcomp.h"
#include "modes/cmode_v.h"
-extern time_t TIME;
-
ModeChannelVoice::ModeChannelVoice(InspIRCd* Instance) : ModeHandler(Instance, 'v', 1, 1, true, MODETYPE_CHANNEL, false)
{
}