diff options
author | Wuzzy <almikes@aol.com> | 2016-12-16 17:40:07 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-12-16 17:40:07 +0100 |
commit | 813b6e7fa38277bc84e94e5efca309758c87d759 (patch) | |
tree | 4dbeb65bbf726ab209c73e08d842ce7da49ce406 /init.lua | |
parent | 7255593e2f4c8663581c3dbe11272cc048c59367 (diff) |
Automatically add connects_to groups to miscgroups
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |