Mercurial > prosody-modules
diff mod_firewall/mod_firewall.lua @ 1325:b21236b6b8d8
Backed out changeset 853a382c9bd6
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 28 Feb 2014 15:37:55 +0100 |
parents | 853a382c9bd6 |
children | 7dbde05b48a9 |
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua Fri Feb 28 15:36:06 2014 +0100 +++ b/mod_firewall/mod_firewall.lua Fri Feb 28 15:37:55 2014 +0100 @@ -27,10 +27,6 @@ type = "event"; "route/remote"; priority = 0.1; }; - send_remote = { -- FIXME name - type = "filter"; "s2sout"; - priority = 0.1; - }; }; local function idsafe(name) @@ -376,13 +372,9 @@ module:log("error", "Compilation error for %s: %s", script, err); else local chain_definition = chains[chain]; - if chain_definition then - if chain_definition.type == "event" then - for _, event_name in ipairs(chain_definition) do - module:hook(event_name, handler, chain_definition.priority); - end - elseif chain_definition.type == "filter" then - -- TODO + if chain_definition and chain_definition.type == "event" then + for _, event_name in ipairs(chain_definition) do + module:hook(event_name, handler, chain_definition.priority); end elseif not chain:match("^user/") then module:log("warn", "Unknown chain %q", chain);