--- a/mod_firewall/mod_firewall.lua Sun Feb 19 21:08:30 2017 +0000
+++ b/mod_firewall/mod_firewall.lua Sun Feb 19 21:10:26 2017 +0000
@@ -191,6 +191,12 @@
local_code = [[local roster_entry = (to_node and rostermanager.load_roster(to_node, to_host) or {})[bare_from];]];
depends = { "rostermanager", "split_to", "bare_from" };
};
+ list = { global_code = function (list)
+ assert(idsafe(list), "Invalid list name: "..list);
+ assert(active_definitions.LIST[list], "Unknown list: "..list);
+ return ("local list_%s = lists[%q];"):format(list, list);
+ end
+ };
};
local function include_dep(dependency, code)