summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
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 600b3ce8c..5d2e7247f 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -1019,6 +1019,11 @@ class CoreExport Module : public Extensible
* @param msg The message
*/
virtual void OnPrivmsg(User *u, Channel *c, Anope::string &msg) { }
+
+ /** Called when a message is logged
+ * @param l The log message
+ */
+ virtual void OnLog(Log *l) { }
};
/** Implementation-specific flags which may be set in ModuleManager::Attach()
@@ -1072,7 +1077,7 @@ enum Implementation
I_OnServerQuit, I_OnTopicUpdated,
I_OnEncrypt, I_OnDecrypt,
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_OnLog,
I_END
};