diff options
author | Sadie Powell <sadie@witchery.services> | 2025-04-02 13:17:38 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-04-02 13:17:38 +0100 |
commit | 404bf77ef5a7f6a6d0efa65ece30566746fda0c6 (patch) | |
tree | 047e66ca34596938ea02fee76a7402b743ba066b /src/messages.cpp | |
parent | 69393a5f14c4be5ff8cb626ef06fb4013eacd474 (diff) |
Add a message handler for messages that can be safely ignored.
Diffstat (limited to 'src/messages.cpp')
-rw-r--r-- | src/messages.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/messages.cpp b/src/messages.cpp index 273ab827b..b1c3c074d 100644 --- a/src/messages.cpp +++ b/src/messages.cpp @@ -57,6 +57,18 @@ void Error::Run(MessageSource &source, const std::vector<Anope::string> ¶ms, Anope::Quitting = true; } +Ignore::Ignore(Module *creator, const Anope::string &mname) + : IRCDMessage(creator, mname, 0) +{ + SetFlag(FLAG_SOFT_LIMIT); +} + +void Ignore::Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) +{ + Log(LOG_DEBUG_3) << "Intentionally ignoring " << name << " message"; +} + + void Invite::Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) { User *targ = User::Find(params[0]); |