]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/timer.cpp
Update detection in module loading commands that relied on old command module names
[user/henk/code/inspircd.git] / src / timer.cpp
index f098a5e6b5f78b6ea6285c58c9bad657ceb11530..b897056e68919bdc846713107be09c3a758c69cc 100644 (file)
@@ -20,8 +20,6 @@
  */
 
 
-/* $Core */
-
 #include "inspircd.h"
 #include "timer.h"
 
@@ -49,8 +47,9 @@ void TimerManager::TickTimers(time_t TIME)
                Timers.erase(i++);
 
                if (!t->Tick(TIME))
-                       delete t;
-               else if (t->GetRepeat())
+                       continue;
+
+               if (t->GetRepeat())
                {
                        t->SetTrigger(TIME + t->GetInterval());
                        AddTimer(t);