summaryrefslogtreecommitdiff
path: root/src/timer.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-23 20:42:57 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-23 20:42:57 +0000
commit5041993a7c5b2b94d84a5c15c4960e6acc3bb52d (patch)
tree08f1c49d268f7d8158ead200e5c46ac23aacae76 /src/timer.cpp
parentee49c1a3a246510c1b3668712c3a2859e2850fd7 (diff)
Added comment
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3312 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/timer.cpp')
-rw-r--r--src/timer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/timer.cpp b/src/timer.cpp
index c172f2fa5..14e612168 100644
--- a/src/timer.cpp
+++ b/src/timer.cpp
@@ -65,6 +65,14 @@ void TickTimers(time_t TIME)
}
}
+/*
+ * Because some muppets may do odd things, and their ircd may lock up due
+ * to crappy 3rd party modules, or they may change their system time a bit,
+ * this accounts for shifts of up to 120 secs by looking behind for missed
+ * timers and executing them. This is only executed once every 5 secs.
+ * If you move your clock BACK, and your timers move further ahead as a result,
+ * then tough titty you'll just have to wait.
+ */
void TickMissedTimers(time_t TIME)
{
for (time_t n = TIME-1; n > TIME-120; n--)