1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 21:53:13 +02:00

Module API: EventAddEx() -> EventAdd()

This commit is contained in:
Bram Matthys
2019-06-12 19:09:33 +02:00
parent e3013ae067
commit ca9b04a0fa
17 changed files with 27 additions and 29 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ MOD_INIT(floodprot)
MOD_LOAD(floodprot)
{
EventAddEx(ModInfo->handle, "modef_event", 10, 0, modef_event, NULL);
EventAdd(ModInfo->handle, "modef_event", 10, 0, modef_event, NULL);
floodprot_rehash_complete();
return MOD_SUCCESS;
}
+1 -1
View File
@@ -103,7 +103,7 @@ MOD_INIT(history)
MOD_LOAD(history)
{
EventAddEx(modinfo->handle, "history_clean", HISTORY_TIMER_EVERY, 0, history_clean, NULL);
EventAdd(modinfo->handle, "history_clean", HISTORY_TIMER_EVERY, 0, history_clean, NULL);
return MOD_SUCCESS;
}
+1 -1
View File
@@ -113,7 +113,7 @@ MOD_INIT(connthrottle)
MOD_LOAD(connthrottle)
{
rehash_read_settings();
EventAddEx(modinfo->handle, "connthrottle_evt", 1, 0, connthrottle_evt, NULL);
EventAdd(modinfo->handle, "connthrottle_evt", 1, 0, connthrottle_evt, NULL);
return MOD_SUCCESS;
}
+1 -1
View File
@@ -91,7 +91,7 @@ ExtbanInfo extban;
return MOD_FAILED;
}
EventAddEx(modinfo->handle, "timedban_timeout", TIMEDBAN_TIMER, 0, timedban_timeout, NULL);
EventAdd(modinfo->handle, "timedban_timeout", TIMEDBAN_TIMER, 0, timedban_timeout, NULL);
return MOD_SUCCESS;
}
+1 -1
View File
@@ -100,7 +100,7 @@ MOD_INIT(jointhrottle)
MOD_LOAD(jointhrottle)
{
EventAddEx(ModInfo->handle, "jointhrottle_cleanup_structs", 60, 0, jointhrottle_cleanup_structs, NULL);
EventAdd(ModInfo->handle, "jointhrottle_cleanup_structs", 60, 0, jointhrottle_cleanup_structs, NULL);
return MOD_SUCCESS;
}
+1 -1
View File
@@ -81,7 +81,7 @@ MOD_LOAD(link_security)
cap.parameter = link_security_capability_parameter;
ClientCapabilityAdd(modinfo->handle, &cap, NULL);
EventAddEx(modinfo->handle, "checklinksec", 2, 0, checklinksec, NULL);
EventAdd(modinfo->handle, "checklinksec", 2, 0, checklinksec, NULL);
checklinksec(NULL);
return MOD_SUCCESS;
}
+1 -1
View File
@@ -48,7 +48,7 @@ MOD_TEST(m_list)
MOD_INIT(m_list)
{
CommandAdd(modinfo->handle, MSG_LIST, m_list, MAXPARA, M_USER);
EventAddEx(modinfo->handle, "send_queued_list_data", 1, 0, send_queued_list_data, NULL);
EventAdd(modinfo->handle, "send_queued_list_data", 1, 0, send_queued_list_data, NULL);
MARK_AS_OFFICIAL_MODULE(modinfo);
return MOD_SUCCESS;
}
+1 -1
View File
@@ -145,7 +145,7 @@ MOD_INIT(m_tkl)
/* Is first run when server is 100% ready */
MOD_LOAD(m_tkl)
{
EventAddEx(TklModInfo->handle, "tklexpire", 5, 0, tkl_check_expire, NULL);
EventAdd(TklModInfo->handle, "tklexpire", 5, 0, tkl_check_expire, NULL);
return MOD_SUCCESS;
}
+3 -3
View File
@@ -167,9 +167,9 @@ MOD_LOAD(reputation)
load_db();
if (reputation_starttime == 0)
reputation_starttime = TStime();
EventAddEx(ModInf.handle, "delete_old_records", DELETE_OLD_EVERY, 0, delete_old_records, NULL);
EventAddEx(ModInf.handle, "add_scores", BUMP_SCORE_EVERY, 0, add_scores, NULL);
EventAddEx(ModInf.handle, "save_db", SAVE_DB_EVERY, 0, save_db_evt, NULL);
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);
return MOD_SUCCESS;
}
+1 -1
View File
@@ -151,7 +151,7 @@ MOD_INIT(tkldb)
MOD_LOAD(tkldb)
{
EventAddEx(modinfo->handle, "tkldb_write_tkldb", TKL_DB_SAVE_EVERY, 0, write_tkldb_evt, NULL);
EventAdd(modinfo->handle, "tkldb_write_tkldb", TKL_DB_SAVE_EVERY, 0, write_tkldb_evt, NULL);
if (ModuleGetError(modinfo->handle) != MODERR_NOERROR)
{
config_error("A critical error occurred when loading module %s: %s", MOD_HEADER(tkldb).name, ModuleGetErrorStr(modinfo->handle));