summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-08 19:58:16 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-08 19:58:16 +0000
commit7a9d31a46328de9c12e09c6f5620d39251efdf34 (patch)
tree10204518c01d8b7e857b13b111903e8d26a4575a
parent1f83b592eae17726783d4cf7afebe36d96bb4b95 (diff)
cmd_whowas now uses the shiny new repeating timer.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6266 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/commands/cmd_whowas.h2
-rw-r--r--src/cmd_whowas.cpp3
2 files changed, 1 insertions, 4 deletions
diff --git a/include/commands/cmd_whowas.h b/include/commands/cmd_whowas.h
index 90264b406..0176274f0 100644
--- a/include/commands/cmd_whowas.h
+++ b/include/commands/cmd_whowas.h
@@ -116,7 +116,7 @@ class MaintainTimer : public InspTimer
InspIRCd* ServerInstance;
public:
MaintainTimer(InspIRCd* Instance, long interval)
- : InspTimer(interval, Instance->Time()), ServerInstance(Instance)
+ : InspTimer(interval, Instance->Time(), true), ServerInstance(Instance)
{
}
virtual void Tick(time_t TIME);
diff --git a/src/cmd_whowas.cpp b/src/cmd_whowas.cpp
index 6b2d31919..37e3e574e 100644
--- a/src/cmd_whowas.cpp
+++ b/src/cmd_whowas.cpp
@@ -350,7 +350,4 @@ void MaintainTimer::Tick(time_t t)
std::deque<classbase*> params;
whowas_command->HandleInternal(WHOWAS_MAINTAIN, params);
}
-
- timer = new MaintainTimer(ServerInstance, 3600);
- ServerInstance->Timers->AddTimer(timer);
}