diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/events.h | 1 | ||||
-rw-r--r-- | include/modules.h | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/events.h b/include/events.h index f642a8ee5..b9d0c8d63 100644 --- a/include/events.h +++ b/include/events.h @@ -38,7 +38,6 @@ #define EVENT_CONNECT "connect" #define EVENT_DB_EXPIRE "db_expire" #define EVENT_RESTART "restart" -#define EVENT_RELOAD "reload" #define EVENT_SHUTDOWN "shutdown" #define EVENT_SIGNAL "signal" #define EVENT_NICK_REGISTERED "nick_registered" diff --git a/include/modules.h b/include/modules.h index 0ec78cb47..cdd76301b 100644 --- a/include/modules.h +++ b/include/modules.h @@ -104,7 +104,7 @@ enum Priority { PRIORITY_FIRST, PRIORITY_DONTCARE, PRIORITY_LAST, PRIORITY_BEFOR enum Implementation { I_BEGIN, - I_OnUserKicked, + I_OnUserKicked, I_OnReload, I_END }; @@ -490,6 +490,11 @@ class CoreExport Module * NOTE: We may want to add a second User arg for sender in the future. */ virtual void OnUserKicked(Channel *c, User *target, const std::string &kickmsg) { } + + /** Called when Services' configuration has been loaded. + * @param startup True if Services is starting for the first time, false otherwise. + */ + virtual void OnReload(bool startup) {} }; |