From fae1dae051f1b33df8dd6a6d22018535c43fab93 Mon Sep 17 00:00:00 2001 From: Supergoat666 <47240900+Supergoat666@users.noreply.github.com> Date: Wed, 29 Jul 2020 09:12:16 +0200 Subject: [PATCH] Enable opening area to many factions --- chatcommands.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chatcommands.lua b/chatcommands.lua index d9df816..6fb1fb8 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -322,10 +322,14 @@ if areas.factions_available then table.insert(fnames,fname) end local open = true + local accessibility = "" if #fnames == 0 then open = false fnames = nil + else + accessibility = " It is open for members of : "..table.concat(fnames,", ") end + areas.areas[id].factions_names = fnames -- Save false as nil to avoid inflating the DB. areas.areas[id].faction_open = open or nil