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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user