summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-12 18:11:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-12 18:11:46 +0000
commitf6e9222205dcc2c44f3aca7dfca85a324358b837 (patch)
treefbbfa15f6134b9c03b95ff83c48a09636d324da3 /include
parentcb77b70cbdffdc95612ef951a951fedf14559f27 (diff)
Added OnBackgroundTimer method, ticks every 5 seconds approximately
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1058 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/modules.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h
index 34549b6c2..a366ebb73 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -367,6 +367,13 @@ class Module : public classbase
* module).
*/
virtual void OnLoadModule(Module* mod,std::string name);
+
+ /** Called once every five seconds for background processing.
+ * This timer can be used to control timed features. Its period is not accurate
+ * enough to be used as a clock, but it is gauranteed to be called at least once in
+ * any five second period, directly from the main loop of the server.
+ */
+ virtual void OnBackgroundTimer(time_t curtime);
};