From 607c6f8d1f075e0f688378264029fecbe5506761 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Sun, 15 Sep 2024 10:08:26 +0200 Subject: [PATCH] another facepalm moment --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 0742eed..7607b53 100644 --- a/init.lua +++ b/init.lua @@ -229,7 +229,8 @@ local function handle_command(name, param) "You are the owner of multiple factions, you have to choose one of them: @1.", table.concat(own_factions, ", ") ) - elseif not facts[faction_name] then + end + if not facts[faction_name] then return false, S("Faction @1 doesn't exist.", faction_name) elseif not_admin and name ~= factions.get_owner(faction_name) then return false, S("Permission denied: You are not the owner of that faction,"