1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 18:03:13 +02:00

* EventAdd() changed the order of parameters and expects every_msec now

which specifies the time in milliseconds rather than seconds. This
  allows for additional precision, or at least multiple calls per second.
  The minimum allowed every_msec value is 100 at this time.
  The prototype is now: EventAdd(Module *module, char *name,
  vFP event, void *data, long every_msec, int count);
This commit is contained in:
Bram Matthys
2019-09-22 15:05:00 +02:00
parent 4d277ccef8
commit 5b8f393a8f
22 changed files with 103 additions and 89 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ MOD_INIT()
MOD_LOAD()
{
EventAdd(modinfo->handle, "modef_event", 10, 0, modef_event, NULL);
EventAdd(modinfo->handle, "modef_event", modef_event, NULL, 10000, 0);
floodprot_rehash_complete();
return MOD_SUCCESS;
}
+1 -1
View File
@@ -103,7 +103,7 @@ MOD_INIT()
MOD_LOAD()
{
EventAdd(modinfo->handle, "history_clean", HISTORY_TIMER_EVERY, 0, history_clean, NULL);
EventAdd(modinfo->handle, "history_clean", history_clean, NULL, HISTORY_TIMER_EVERY*1000, 0);
return MOD_SUCCESS;
}