diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-10 22:56:03 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-10 22:56:03 +0000 |
| commit | b73210e538038a8dd803c0c250369b8fd3c2b3f7 (patch) | |
| tree | 5e35bc86ca22875321378dd755d32999efdf7bb3 /include/modules.h | |
| parent | 01d43e7db5514e29460c7952762739cdb7ee4b23 (diff) | |
Rewrote the code that handles and sends kicks
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2746 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/modules.h')
| -rw-r--r-- | include/modules.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/modules.h b/include/modules.h index a15657608..67aafc580 100644 --- a/include/modules.h +++ b/include/modules.h @@ -619,12 +619,14 @@ class CoreExport Module */ virtual void OnBotPreLoad(BotInfo *bi) { } - /** Called when a bot kicks a user + /** Called before a bot kicks a user + * @param bi The bot sending the kick + * @param c The channel the user is being kicked on * @param u The user being kicked - * @param ci The channel * @param reason The reason + * @return EVENT_CONTINUE to let other modules decide, EVENT_STOP to halt the command and not process it */ - virtual void OnBotKick(User *u, ChannelInfo *ci, const std::string &reason) { } + virtual EventReturn OnBotKick(BotInfo *bi, Channel *c, User *u, const std::string &reason) { return EVENT_CONTINUE; } /** Called before a user parts a channel * @param u The user |
