summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-16 17:40:07 +0100
committerWuzzy <almikes@aol.com>2016-12-16 17:40:07 +0100
commit813b6e7fa38277bc84e94e5efca309758c87d759 (patch)
tree4dbeb65bbf726ab209c73e08d842ce7da49ce406 /init.lua
parent7255593e2f4c8663581c3dbe11272cc048c59367 (diff)
Automatically add connects_to groups to miscgroups
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua10
1 files changed, 10 insertions, 0 deletions
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