mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-08 23:43: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:
@@ -89,7 +89,7 @@ ExtbanInfo extban;
|
||||
return MOD_FAILED;
|
||||
}
|
||||
|
||||
EventAdd(modinfo->handle, "timedban_timeout", TIMEDBAN_TIMER, 0, timedban_timeout, NULL);
|
||||
EventAdd(modinfo->handle, "timedban_timeout", timedban_timeout, NULL, TIMEDBAN_TIMER*1000, 0);
|
||||
|
||||
return MOD_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user