1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 19:26:40 +02:00

Add a message handler for messages that can be safely ignored.

This commit is contained in:
Sadie Powell
2025-04-02 13:17:38 +01:00
parent 69393a5f14
commit 404bf77ef5
4 changed files with 26 additions and 1 deletions
+12
View File
@@ -57,6 +57,18 @@ void Error::Run(MessageSource &source, const std::vector<Anope::string> &params,
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> &params, const Anope::map<Anope::string> &tags)
{
Log(LOG_DEBUG_3) << "Intentionally ignoring " << name << " message";
}
void Invite::Run(MessageSource &source, const std::vector<Anope::string> &params, const Anope::map<Anope::string> &tags)
{
User *targ = User::Find(params[0]);