diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-14 21:30:38 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-14 21:30:38 +0000 |
| commit | 525dfe12e634bf575c3a090f45271861da8d7bd0 (patch) | |
| tree | 9cb6c21978454bd90e86007012eb51fe70dcccb0 /include | |
| parent | 0d6fa568ecb57105561c669c936d23018b70bfe2 (diff) | |
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
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
