From 404bf77ef5a7f6a6d0efa65ece30566746fda0c6 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 2 Apr 2025 13:17:38 +0100 Subject: Add a message handler for messages that can be safely ignored. --- include/messages.h | 7 +++++++ include/protocol.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'include') 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 ¶ms, const Anope::map &tags) override; }; + struct CoreExport Ignore final + : IRCDMessage + { + Ignore(Module *creator, const Anope::string &mname); + void Run(MessageSource &source, const std::vector ¶ms, const Anope::map &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; -- cgit