1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 16:46:38 +02:00

Move EVENT_RELOAD to OnReload.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2103 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rburchell
2009-02-16 23:48:03 +00:00
parent c1c9e17d79
commit d07de70fc3
8 changed files with 33 additions and 75 deletions
-1
View File
@@ -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"
+6 -1
View File
@@ -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) {}
};