diff options
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 |
