summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}