summaryrefslogtreecommitdiff
path: root/modules/protocol/unreal4.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-01-02 16:38:25 -0500
committerAdam <Adam@anope.org>2016-01-02 16:38:25 -0500
commit36a465473ec59b341b6f9582afe9126c8e7ffa4e (patch)
tree10143cd17f3742ff2c352fcbe66f44d9a8665aab /modules/protocol/unreal4.cpp
parent23a0ecd0c4910d43311cbe9bfdb223dccb21ee58 (diff)
Add IRCDMESSAGE_SOFT_LIMIT to MD handler
Diffstat (limited to 'modules/protocol/unreal4.cpp')
-rw-r--r--modules/protocol/unreal4.cpp6
1 files 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<Anope::string> &params) 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);