diff options
author | Sadie Powell <sadie@witchery.services> | 2024-02-22 12:00:40 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-02-22 13:03:53 +0000 |
commit | 7423fa9998d7e7082cac63eda18ae785091ea1b0 (patch) | |
tree | ceda569b8b0148c7cbfca25c71e7e5a0a0d45710 /include/modules.h | |
parent | 7cba665270958b6e25add883df73df4976259e54 (diff) |
Route message tags into more message functions.
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/modules.h b/include/modules.h index a50ef54a9..048e28f9f 100644 --- a/include/modules.h +++ b/include/modules.h @@ -964,23 +964,26 @@ public: * @param u The user sending the PRIVMSG * @param bi The target of the PRIVMSG * @param message The message + * @param tags Message tags * @return EVENT_STOP to halt processing */ - virtual EventReturn OnBotPrivmsg(User *u, BotInfo *bi, Anope::string &message) { throw NotImplementedException(); } + virtual EventReturn OnBotPrivmsg(User *u, BotInfo *bi, Anope::string &message, const Anope::map<Anope::string> &tags) { throw NotImplementedException(); } /** Called when we receive a NOTICE for one of our clients * @param u The user sending the NOTICE * @param bi The target of the NOTICE + * @param tags Message tags * @param message The message */ - virtual void OnBotNotice(User *u, BotInfo *bi, Anope::string &message) { throw NotImplementedException(); } + virtual void OnBotNotice(User *u, BotInfo *bi, Anope::string &message, const Anope::map<Anope::string> &tags) { throw NotImplementedException(); } /** Called when we receive a PRIVMSG for a registered channel we are in * @param u The source of the message * @param c The channel * @param msg The message + * @param tags Message tags */ - virtual void OnPrivmsg(User *u, Channel *c, Anope::string &msg) { throw NotImplementedException(); } + virtual void OnPrivmsg(User *u, Channel *c, Anope::string &msg, const Anope::map<Anope::string> &tags) { throw NotImplementedException(); } /** Called when a message is logged * @param l The log message |