diff options
| author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-18 23:00:41 +0000 |
|---|---|---|
| committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-18 23:00:41 +0000 |
| commit | bcb857f11848ec408c6385780bd1267401d6a54e (patch) | |
| tree | 52c55ad6bf6fd3508d7f3df671672da1b572a529 /include | |
| parent | 187c45059a692e63c3ea1e1176d98e080ccf374b (diff) | |
Move EVENT_DB_SAVING to newevent.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2108 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
| -rw-r--r-- | include/events.h | 1 | ||||
| -rw-r--r-- | include/modules.h | 19 |
2 files changed, 11 insertions, 9 deletions
diff --git a/include/events.h b/include/events.h index e98ad2118..59447f06a 100644 --- a/include/events.h +++ b/include/events.h @@ -15,7 +15,6 @@ #define EVENT_START "start" //#define EVENT_STOP "stop" -#define EVENT_DB_SAVING "db_saving" #define EVENT_DB_BACKUP "db_backup" #define EVENT_NEWNICK "newnick" #define EVENT_BOT_JOIN "bot_join" diff --git a/include/modules.h b/include/modules.h index 728387609..b2c04582f 100644 --- a/include/modules.h +++ b/include/modules.h @@ -108,14 +108,6 @@ do { \ */ enum Priority { PRIORITY_FIRST, PRIORITY_DONTCARE, PRIORITY_LAST, PRIORITY_BEFORE, PRIORITY_AFTER }; -/** Implementation-specific flags which may be set in Module::Implements() - */ -enum Implementation -{ - I_BEGIN, - I_OnUserKicked, I_OnReload, I_OnBotAssign, I_OnBotUnAssign, - I_END -}; /*************************************************************************/ @@ -519,9 +511,20 @@ class CoreExport Module * @return EVENT_CONTINUE to let other modules decide, EVENT_STOP to deny the unassign. */ virtual EventReturn OnBotUnAssign(User *sender, ChannelInfo *ci) { return EVENT_CONTINUE; } + + virtual void OnSaveDatabase() { } }; +/** Implementation-specific flags which may be set in Module::Implements() + */ +enum Implementation +{ + I_BEGIN, + I_OnUserKicked, I_OnReload, I_OnBotAssign, I_OnBotUnAssign, I_OnSaveDatabase, + I_END +}; + /** Used to manage modules. */ |
