]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sqloper.cpp
Read the muteban config in ReadConfig().
[user/henk/code/inspircd.git] / src / modules / m_sqloper.cpp
index e126e584e2bde8a321d7cfa58c4e0c083ef62861..da538caef63876d441663302b872efaf8b27a920 100644 (file)
@@ -138,12 +138,13 @@ class OperQuery : public SQL::Query
                        ModResult MOD_RESULT;
 
                        std::string origin = "OPER";
-                       FIRST_MOD_RESULT(OnPreCommand, MOD_RESULT, (origin, params, localuser, true, origin));
+                       FIRST_MOD_RESULT(OnPreCommand, MOD_RESULT, (origin, params, localuser, true));
                        if (MOD_RESULT == MOD_RES_DENY)
                                return;
 
                        // Now handle /OPER.
-                       oper_command->Handle(user, params);
+                       ClientProtocol::TagMap tags;
+                       oper_command->Handle(user, CommandBase::Params(params, tags));
                }
                else
                {
@@ -195,7 +196,7 @@ public:
                }
        }
 
-       ModResult OnPreCommand(std::string& command, CommandBase::Params& parameters, LocalUser* user, bool validated, const std::string& original_line) CXX11_OVERRIDE
+       ModResult OnPreCommand(std::string& command, CommandBase::Params& parameters, LocalUser* user, bool validated) CXX11_OVERRIDE
        {
                // If we are not in the middle of an existing /OPER and someone is trying to oper-up
                if (validated && command == "OPER" && parameters.size() >= 2 && !active)