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:
@@ -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
@@ -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) {}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user