mirror of
https://github.com/anope/anope.git
synced 2026-06-25 02:46:37 +02:00
Add IRCDMESSAGE_SOFT_LIMIT to MD handler
This commit is contained in:
@@ -816,16 +816,16 @@ struct IRCDMessageChgName : IRCDMessage
|
||||
|
||||
struct IRCDMessageMD : IRCDMessage
|
||||
{
|
||||
IRCDMessageMD(Module *creator) : IRCDMessage(creator, "MD", 3) { }
|
||||
IRCDMessageMD(Module *creator) : IRCDMessage(creator, "MD", 3) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
||||
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override
|
||||
{
|
||||
const Anope::string &type = params[0],
|
||||
const Anope::string &mdtype = params[0],
|
||||
&obj = params[1],
|
||||
&var = params[2],
|
||||
&value = params.size() > 3 ? params[3] : "";
|
||||
|
||||
if (type == "client")
|
||||
if (mdtype == "client")
|
||||
{
|
||||
User *u = User::Find(obj);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user