summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-02-20 01:05:16 -0500
committerAdam <Adam@anope.org>2011-02-20 01:05:16 -0500
commitc83b2b73d7c5f264dedb67b878d116b5b10a4742 (patch)
tree407251a2bb3bf738194b6ec7654b0872b6bab1d5 /include/modules.h
parentdfbb5264fac5b418da536cc968aed4bf5cde8b76 (diff)
Much more work on the live SQL. Should work pretty decently now under heavy load.
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h
index 4532549f1..c407e2c21 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -1066,6 +1066,11 @@ class CoreExport Module : public Extensible
* @return MOD_STOP to stop processing completely
*/
virtual EventReturn OnPrivmsg(User *u, ChannelInfo *ci, Anope::string &msg, bool &Allow) { return EVENT_CONTINUE; }
+
+ /** Called when any object is destroyed
+ * @param b The object
+ */
+ virtual void OnObjectDestroy(Base *b) { }
};
/** Implementation-specific flags which may be set in ModuleManager::Attach()
@@ -1118,7 +1123,7 @@ enum Implementation
I_OnServerQuit, I_OnTopicUpdated,
I_OnEncrypt, I_OnEncryptCheckLen, I_OnDecrypt, I_OnCheckPassword,
I_OnChannelModeSet, I_OnChannelModeUnset, I_OnUserModeSet, I_OnUserModeUnset, I_OnChannelModeAdd, I_OnUserModeAdd,
- I_OnMLock, I_OnUnMLock, I_OnServerSync, I_OnUplinkSync, I_OnBotPrivmsg, I_OnPrivmsg,
+ I_OnMLock, I_OnUnMLock, I_OnServerSync, I_OnUplinkSync, I_OnBotPrivmsg, I_OnPrivmsg, I_OnObjectDestroy,
I_END
};