From 0d196603799004b37cf932abe4d983f2bf46214e Mon Sep 17 00:00:00 2001 From: ulysse Date: Fri, 2 Apr 2021 14:40:42 +0200 Subject: [PATCH] fix error in case handling --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 091a878..112deba 100644 --- a/init.lua +++ b/init.lua @@ -258,7 +258,8 @@ local function handle_command(name, param) else return false, S("You are in many factions, you have to choose one of them: @1.", table.concat(player_factions, ", ")) end - elseif facts[faction_name] == nil then + end + if facts[faction_name] == nil then return false, S("This faction doesn't exists.") else local fmembers = ""