From 525dfe12e634bf575c3a090f45271861da8d7bd0 Mon Sep 17 00:00:00 2001 From: Adam- Date: Thu, 14 Jan 2010 21:30:38 +0000 Subject: Added param arg to ChannelModeSet/Unset events, and fixed it to not ignore status and list modes git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2758 5417fbe8-f217-4b02-8779-1006273d7864 --- 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 45541c28c..450c48b10 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1004,16 +1004,18 @@ class CoreExport Module /** Called when a mode is set on a channel * @param c The channel * @param Name The mode name + * @param param The mode param, if there is one * @return EVENT_STOP to make mlock/secureops etc checks not happen */ - virtual EventReturn OnChannelModeSet(Channel *c, ChannelModeName Name) { return EVENT_CONTINUE; } + virtual EventReturn OnChannelModeSet(Channel *c, ChannelModeName Name, const std::string ¶m) { return EVENT_CONTINUE; } /** Called when a mode is unset on a channel * @param c The channel * @param Name The mode name + * @param param The mode param, if there is one * @return EVENT_STOP to make mlock/secureops etc checks not happen */ - virtual EventReturn OnChannelModeUnset(Channel *c, ChannelModeName Name) { return EVENT_CONTINUE; } + virtual EventReturn OnChannelModeUnset(Channel *c, ChannelModeName Name, const std::string ¶m) { return EVENT_CONTINUE; } /** Called when a mode is set on a user * @param u The user -- cgit