diff options
| author | Adam <Adam@anope.org> | 2012-12-28 15:59:33 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-12-28 15:59:33 -0500 |
| commit | 6b1f323bb519009048a94c8bb3d003288a339345 (patch) | |
| tree | b30ad2793adca8e63f9de0b8a45295a4f3d56dea /include | |
| parent | 761849083da3a523eeb3b2293311cfee1c29df35 (diff) | |
Move some of CheckKick to the respective modules
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 eba0138b8..cc5bb4b07 100644 --- a/include/modules.h +++ b/include/modules.h @@ -642,9 +642,11 @@ class CoreExport Module : public Extensible * @param u The user * @param ci The channel * @param kick Set to true to kick - * @return EVENT_ALLOW to stop processing immediatly + * @param mask The mask to ban, if any + * @param reason The reason for the kick + * @return EVENT_STOP to prevent the user from joining by kicking/banning the user */ - virtual EventReturn OnCheckKick(User *u, ChannelInfo *ci, bool &kick) { return EVENT_CONTINUE; } + virtual EventReturn OnCheckKick(User *u, ChannelInfo *ci, Anope::string &mask, Anope::string &reason) { return EVENT_CONTINUE; } /** Called when a user requests info for a channel * @param source The user requesting info |
