Comparison

mod_firewall/actions.lib.lua @ 2915:b8f2e86df7ce

mod_firewall: Add UNSBSCRIBE SENDER action
author Matthew Wild <mwild1@gmail.com>
date Fri, 09 Mar 2018 13:35:11 +0000
parent 2894:165d2877eeac
child 2996:0fb95dc11bc8
comparison
equal deleted inserted replaced
2914:0d2d4d5bb5f5 2915:b8f2e86df7ce
226 local meta_deps = {}; 226 local meta_deps = {};
227 value = meta(("%q"):format(value), meta_deps); 227 value = meta(("%q"):format(value), meta_deps);
228 return ("list_%s:add(%s);"):format(list_name, value), { "list:"..list_name, unpack(meta_deps) }; 228 return ("list_%s:add(%s);"):format(list_name, value), { "list:"..list_name, unpack(meta_deps) };
229 end 229 end
230 230
231 function action_handlers.UNSUBSCRIBE_SENDER()
232 return "rostermanager.unsubscribed(to_node, to_host, bare_from)",
233 { "rostermanager", "split_to", "bare_to", "bare_from" };
234 end
235
231 return action_handlers; 236 return action_handlers;