summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-09-03 01:10:12 -0400
committerAdam <Adam@anope.org>2011-09-10 02:06:29 -0400
commit1478b5bbd7ecc99c3ceefc0396845ebb0608d331 (patch)
tree24783150322c7774643e22f4b3074764dab0736e /include/modules.h
parent19e0b87aa1f41c3aabf6afc87ecdc8517dd47af0 (diff)
Added chanserv/log
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
};