diff --git a/chatcommands.lua b/chatcommands.lua index 4615335..8def94f 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -289,7 +289,7 @@ if areas.factions_available then params = S(" [faction_name]"), description = S("Toggle an area open/closed for members in your faction."), func = function(name, param) - params = param:split(" ") + local params = param:split(" ") local id = tonumber(params[1])