summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-04-02 13:17:38 +0100
committerSadie Powell <sadie@witchery.services>2025-04-02 13:17:38 +0100
commit404bf77ef5a7f6a6d0efa65ece30566746fda0c6 (patch)
tree047e66ca34596938ea02fee76a7402b743ba066b /include
parent69393a5f14c4be5ff8cb626ef06fb4013eacd474 (diff)
Add a message handler for messages that can be safely ignored.
Diffstat (limited to 'include')
-rw-r--r--include/messages.h7
-rw-r--r--include/protocol.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/include/messages.h b/include/messages.h
index 510f66361..58b90cc28 100644
--- a/include/messages.h
+++ b/include/messages.h
@@ -45,6 +45,13 @@ namespace Message
void Run(MessageSource &source, const std::vector<Anope::string> &params, const Anope::map<Anope::string> &tags) override;
};
+ struct CoreExport Ignore final
+ : IRCDMessage
+ {
+ Ignore(Module *creator, const Anope::string &mname);
+ void Run(MessageSource &source, const std::vector<Anope::string> &params, const Anope::map<Anope::string> &tags) override;
+ };
+
struct CoreExport Invite
: IRCDMessage
{
diff --git a/include/protocol.h b/include/protocol.h
index 08a41d3da..5c71c2960 100644
--- a/include/protocol.h
+++ b/include/protocol.h
@@ -362,7 +362,7 @@ public:
FLAG_MAX,
};
-private:
+protected:
/** The name of the message (e.g. PRIVMSG). */
const Anope::string name;