From b9ddace0dcfd1c4e282aa9bc5619c5bfd79549f2 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Tue, 17 Sep 2024 23:32:01 +0200 Subject: [PATCH] simpler check --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 94cd50b..0f7e205 100644 --- a/init.lua +++ b/init.lua @@ -511,7 +511,7 @@ function cc.invite(_, params, not_admin) return false, S("Player @1 doesn't exist.", target_name) end local player_factions = factions.get_player_factions(target_name) - if player_factions and facts[faction_name].members[target_name] then + if facts[faction_name].members[target_name] then return false, S("Player @1 is already in faction @2.", target_name, faction_name) elseif player_factions and factions.mode_unique_faction then