]> git.lizzy.rs Git - elidragon.git/blobdiff - commands.lua
Removed some ugly stuff, added auto show hud
[elidragon.git] / commands.lua
index dafa319c5346a7a732bd8c68305d9d440cda8d08..c9ceae660e67b24991db1739a9339ae76e2e5570 100755 (executable)
@@ -72,10 +72,9 @@ minetest.register_chatcommand("sudo", {
        func = function(name, param)
                local target = param:split(" ")[1]
                local command = param:split(" ")[2]
-               local arguments
                local argumentsdisp
                local cmddef = minetest.chatcommands
-               _, _, arguments = string.match(param, "([^ ]+) ([^ ]+) (.+)")
+               local _, _, arguments = string.match(param, "([^ ]+) ([^ ]+) (.+)")
                if not arguments then arguments = "" end
                if target and command then
                        if cmddef[command] then