From 36a465473ec59b341b6f9582afe9126c8e7ffa4e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 2 Jan 2016 16:38:25 -0500 Subject: [PATCH] Add IRCDMESSAGE_SOFT_LIMIT to MD handler --- modules/protocol/unreal4.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/protocol/unreal4.cpp b/modules/protocol/unreal4.cpp index 2399b47aa..52241a59b 100644 --- a/modules/protocol/unreal4.cpp +++ b/modules/protocol/unreal4.cpp @@ -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 ¶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);