1
0
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:
Adam
2016-01-02 16:38:25 -05:00
parent 23a0ecd0c4
commit 36a465473e
+3 -3
View File
@@ -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);