From f13c450b938633a27014cabad377821f87ce16b0 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 12 Oct 2017 19:28:34 -0400 Subject: Add post init event --- include/modules.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 95b02f29a..c3dae33a5 100644 --- a/include/modules.h +++ b/include/modules.h @@ -301,6 +301,11 @@ class CoreExport Module : public Extensible * before they will be called. */ + /** Called on startup after database load, but before + * connecting to the uplink. + */ + virtual void OnPostInit() { throw NotImplementedException(); } + /** Called before a user has been kicked from a channel. * @param source The kicker * @param cu The user, channel, and status of the user being kicked @@ -1099,6 +1104,7 @@ class CoreExport Module : public Extensible enum Implementation { + I_OnPostInit, I_OnPreUserKicked, I_OnUserKicked, I_OnReload, I_OnPreBotAssign, I_OnBotAssign, I_OnBotUnAssign, I_OnUserConnect, I_OnNewServer, I_OnUserNickChange, I_OnPreHelp, I_OnPostHelp, I_OnPreCommand, I_OnPostCommand, I_OnSaveDatabase, I_OnLoadDatabase, I_OnEncrypt, I_OnDecrypt, I_OnBotFantasy, I_OnBotNoFantasyAccess, I_OnBotBan, I_OnBadWordAdd, -- cgit