diff options
| author | Adam <Adam@anope.org> | 2012-11-23 16:56:06 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-11-23 16:56:06 -0500 |
| commit | 36b1166cf6efddbc9a9abc8f00ad13bb0d4e56a9 (patch) | |
| tree | a5883db9349de07b349647f467abfe05f8a2810e /include/modules.h | |
| parent | 0e7bd9f3ba9ff8fe634fcf7d365ea2a984655d83 (diff) | |
Change the return type of ircdmessage to void now that we don't use it, add an ircd message module event, and a few more fixups
Diffstat (limited to 'include/modules.h')
| -rw-r--r-- | include/modules.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h index e62ed8e36..bbdfc5659 100644 --- a/include/modules.h +++ b/include/modules.h @@ -957,6 +957,14 @@ class CoreExport Module : public Extensible * @return EVENT_STOP to halt immediately */ virtual EventReturn OnSetNickOption(CommandSource &source, Command *cmd, NickCore *nc, const Anope::string &setting) { return EVENT_CONTINUE; } + + /** Called whenever a message is received from the uplink + * @param source The source of the message + * @param command The command being executed + * @param params Parameters + * @return EVENT_STOP to prevent the protocol module from processing this message + */ + virtual EventReturn OnMessage(MessageSource &source, Anope::string &command, std::vector<Anope::string> ¶m) { return EVENT_CONTINUE; } }; /** Implementation-specific flags which may be set in ModuleManager::Attach() @@ -1007,6 +1015,7 @@ enum Implementation I_OnEncrypt, I_OnDecrypt, I_OnChannelModeSet, I_OnChannelModeUnset, I_OnUserModeSet, I_OnUserModeUnset, I_OnChannelModeAdd, I_OnUserModeAdd, I_OnMLock, I_OnUnMLock, I_OnServerSync, I_OnUplinkSync, I_OnBotPrivmsg, I_OnPrivmsg, I_OnLog, I_OnDnsRequest, + I_OnMessage, I_OnSerializeCheck, I_OnSerializableConstruct, I_OnSerializableDestruct, I_OnSerializableUpdate, I_END |
