From 813b6e7fa38277bc84e94e5efca309758c87d759 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 16 Dec 2016 17:40:07 +0100 Subject: Automatically add connects_to groups to miscgroups --- init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'init.lua') diff --git a/init.lua b/init.lua index e7a1142..19052a0 100644 --- a/init.lua +++ b/init.lua @@ -1078,6 +1078,16 @@ local function gather_descs() end end end + + -- ... and gather all groups used in connects_to + if def.connects_to ~= nil then + for c=1, #def.connects_to do + if string.sub(def.connects_to[c],1,6) == "group:" then + local group = string.sub(def.connects_to[c],7,-1) + miscgroups[group] = true + end + end + end end -- 2nd pass: Add entries -- cgit v1.2.3