From 27652144ec6e30e88cdef3dc39aa2168f3f31cc8 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 17 Nov 2010 19:59:23 -0500 Subject: Fixed the mlock events to be useful and fixed /cs access view's last used time --- include/modules.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index f39757489..7e7e69194 100644 --- a/include/modules.h +++ b/include/modules.h @@ -991,18 +991,20 @@ class CoreExport Module : public Extensible virtual void OnUserModeAdd(UserMode *um) { } /** Called when a mode is about to be mlocked + * @param ci The channel * @param Name The mode being mlocked * @param status true if its being mlocked +, false for - * @param param The param, if there is one and if status is true * @return EVENT_CONTINUE to let other modules decide, EVENT_STOP to deny the mlock. */ - virtual EventReturn OnMLock(ChannelModeName Name, bool status, const Anope::string ¶m) { return EVENT_CONTINUE; } + virtual EventReturn OnMLock(ChannelInfo *ci, ChannelModeName Name, bool status, const Anope::string ¶m) { return EVENT_CONTINUE; } /** Called when a mode is about to be unlocked + * @param ci The channel * @param Name The mode being mlocked * @return EVENT_CONTINUE to let other modules decide, EVENT_STOP to deny the mlock. */ - virtual EventReturn OnUnMLock(ChannelModeName Name) { return EVENT_CONTINUE; } + virtual EventReturn OnUnMLock(ChannelInfo *ci, ChannelModeName Name) { return EVENT_CONTINUE; } /** Called after a module is loaded * @param u The user loading the module, can be NULL -- cgit