1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 18:03:14 +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
+3 -3
View File
@@ -175,9 +175,9 @@ MOD_LOAD()
load_db();
if (reputation_starttime == 0)
reputation_starttime = TStime();
EventAdd(ModInf.handle, "delete_old_records", DELETE_OLD_EVERY, 0, delete_old_records, NULL);
EventAdd(ModInf.handle, "add_scores", BUMP_SCORE_EVERY, 0, add_scores, NULL);
EventAdd(ModInf.handle, "save_db", SAVE_DB_EVERY, 0, save_db_evt, NULL);
EventAdd(ModInf.handle, "delete_old_records", delete_old_records, NULL, DELETE_OLD_EVERY*1000, 0);
EventAdd(ModInf.handle, "add_scores", add_scores, NULL, BUMP_SCORE_EVERY*1000, 0);
EventAdd(ModInf.handle, "save_db", save_db_evt, NULL, SAVE_DB_EVERY*1000, 0);
return MOD_SUCCESS;
}