From d07de70fc3156e143beeb04c0e2bbfb592415ead Mon Sep 17 00:00:00 2001 From: rburchell Date: Mon, 16 Feb 2009 23:48:03 +0000 Subject: Move EVENT_RELOAD to OnReload. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2103 5417fbe8-f217-4b02-8779-1006273d7864 --- include/events.h | 1 - include/modules.h | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'include') 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) {} }; -- cgit