fail to register same named factions

This commit is contained in:
Luke aka SwissalpS 2024-09-16 16:29:02 +02:00
parent 393b4faacb
commit d333c8fa71

@ -131,6 +131,9 @@ function factions.register_faction(faction_name, player_name, password)
and 'string' == type(password)) then and 'string' == type(password)) then
return false return false
end end
if facts[faction_name] then
return false
end
facts[faction_name] = { facts[faction_name] = {
name = faction_name, name = faction_name,
owner = player_name, owner = player_name,