From d333c8fa71548f5606d71525a5ba4810992b82c7 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Mon, 16 Sep 2024 16:29:02 +0200 Subject: [PATCH] fail to register same named factions --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index 0d3c739..6457695 100644 --- a/init.lua +++ b/init.lua @@ -131,6 +131,9 @@ function factions.register_faction(faction_name, player_name, password) and 'string' == type(password)) then return false end + if facts[faction_name] then + return false + end facts[faction_name] = { name = faction_name, owner = player_name,