]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Decide that it wasn't quite appropriate :(
[user/henk/code/inspircd.git] / src / inspircd.cpp
index 2b57a2292f9a33a91b751a8f351347de851d95e7..ee30ba4e9e9c7951f469ba22a3227b7a0868f00a 100644 (file)
@@ -641,6 +641,7 @@ int InspIRCd::Run()
                {
                        expire_lines();
                        FOREACH_MOD(I_OnBackgroundTimer,OnBackgroundTimer(TIME));
+                       TickMissedTimers(TIME);
                        expire_run = true;
                        continue;
                }
@@ -655,6 +656,10 @@ int InspIRCd::Run()
                        if (TIME < OLDTIME)
                                WriteOpers("*** \002EH?!\002 -- Time is flowing BACKWARDS in this dimension! Clock drifted backwards %d secs.",abs(OLDTIME-TIME));
                        DoBackgroundUserStuff(TIME);
+
+                       /*
+                        * Trigger all InspTimers that are pending
+                        */
                }
 
                /* Process timeouts on module sockets each time around
@@ -664,6 +669,8 @@ int InspIRCd::Run()
                 */
                DoSocketTimeouts(TIME);
 
+               TickTimers(TIME);
+
                /* Call the socket engine to wait on the active
                 * file descriptors. The socket engine has everything's
                 * descriptors in its list... dns, modules, users,