Commit Graph

16 Commits

Author SHA1 Message Date
Badlop f672262950 Set default value for the arguments option: [] (#308) 2022-04-12 11:32:45 +02:00
Badlop 7e2fe1b789 Improve mod_cron to support ctl and command options (#307) 2022-04-11 17:36:46 +02:00
Badlop 3d523cec45 New option args_type useful when the function expects arguments as strings 2022-01-05 12:45:41 +01:00
Badlop a95e657a21 Add simple mod_doc/0 to prevent warnings; they won't be used anyway 2021-07-06 21:02:29 +02:00
Badlop 4cde5d84f2 Update xmpp.hrl path to support compilation when copied to ejabberd/src/ 2021-02-08 00:15:27 +01:00
Badlop 857d350a71 Update some modules to work with ejabberd 19.08 (#277) 2019-08-19 20:42:03 +02:00
Badlop e138359c7f Update modules for ejabberd 18.06 lack of jlib.hrl and ejabberd.hrl (#251) 2018-07-13 16:18:34 +02:00
Badlop 00e76aec2c Fix starting mod_cron in recent ejabberd 17.04 (#214) 2017-06-01 17:43:22 +02:00
Badlop 65f4267fc1 Replace now() which is deprecated (processone/ejabberd#1264) 2016-08-23 13:11:13 +02:00
Badlop b45fd21340 Fix mod_cron still looking for xml.hrl (#157) 2016-03-24 14:56:46 +01:00
Badlop 98ab39f962 Fix mod_log_chat and mod_cron compilation (thanks to Mathias Ertl)(#103) 2015-05-12 16:39:02 +02:00
Zach Goldberg aecd0e7deb Support two types of cron: interval and fixed
This updates mod_cron to have much more unix-cron like behavior.  The old
version would start an interval timer whenever ejabberd started, which isn't
a particularly useful starting point (I don't care for my regular activities
to be based on when the server was last booted).

This version allows two types of entries: timers based on an interval,
e.g. every 10 seconds (which would start on the minute, so occur at
00:00s, 00:10s, 00:20s etc) and fixed timers occuring once per
parent-interval.  e.g. a fixed 10s timer would occur at 00:10s,
01:10s etc. (ie its a one minute interval happening 10seconds
after every minute).
2015-02-11 16:23:38 -08:00
Badlop edb67df064 Update mod_cron for better YAML config support 2015-01-28 17:12:59 +01:00
Badlop 44f709ba38 Fix mod_cron to work with ejabberd git master 2015-01-28 13:55:56 +01:00
Mathias Ertl c62daaeeef fix includes for mod_cron 2014-06-29 10:14:15 +02:00
Badlop ee7d3c7030 Initial import from ejabberd-modules SVN 2013-04-15 12:03:14 +02:00