diff options
| author | Adam <Adam@anope.org> | 2011-01-15 16:11:31 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-01-15 16:11:31 -0500 |
| commit | c669820481b8c431f4238d6b2d958e9dbfec411a (patch) | |
| tree | eaa7e25756bed697553db9529cb490dc954a73a3 /include/modules.h | |
| parent | ecc2fc6029567d1d2f4d02d36bf64216ae9a03ee (diff) | |
Added an amsg kicker
Diffstat (limited to 'include/modules.h')
| -rw-r--r-- | include/modules.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h index ae5bbeee3..fd032fe87 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1056,6 +1056,15 @@ class CoreExport Module : public Extensible * @return EVENT_STOP to halt processing */ virtual EventReturn OnBotPrivmsg(User *u, BotInfo *bi, const Anope::string &message) { return EVENT_CONTINUE; } + + /** Called when we receive a PRIVMSG for a registered channel we are in + * @param u The source of the message + * @param ci The channel + * @param msg The message + * @param Allow set to false to make the flood kickers halt + * @return MOD_STOP to stop processing completely + */ + virtual EventReturn OnPrivmsg(User *u, ChannelInfo *ci, Anope::string &msg, bool &Allow) { return EVENT_CONTINUE; } }; /** Implementation-specific flags which may be set in ModuleManager::Attach() @@ -1108,7 +1117,7 @@ enum Implementation I_OnServerQuit, I_OnTopicUpdated, I_OnEncrypt, I_OnEncryptCheckLen, I_OnDecrypt, I_OnCheckPassword, I_OnChannelModeSet, I_OnChannelModeUnset, I_OnUserModeSet, I_OnUserModeUnset, I_OnChannelModeAdd, I_OnUserModeAdd, - I_OnMLock, I_OnUnMLock, I_OnServerSync, I_OnUplinkSync, I_OnBotPrivmsg, + I_OnMLock, I_OnUnMLock, I_OnServerSync, I_OnUplinkSync, I_OnBotPrivmsg, I_OnPrivmsg, I_END }; |
