Software /
code /
prosody-modules
Diff
mod_firewall/mod_firewall.lua @ 2415:07d7036040ee
mod_firewall: Insert semicolons after some statements to prevent ambiguous syntax in output (fixes #797)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 13 Dec 2016 16:57:16 +0100 |
parent | 2412:9159f9166893 |
child | 2416:ade918cd9ca7 |
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua Sun Dec 04 10:19:07 2016 +0100 +++ b/mod_firewall/mod_firewall.lua Tue Dec 13 16:57:16 2016 +0100 @@ -93,7 +93,7 @@ to = { local_code = [[local to = stanza.attr.to or jid_bare(session.full_jid);]]; depends = { "jid_bare" } }; from = { local_code = [[local from = stanza.attr.from;]] }; type = { local_code = [[local type = stanza.attr.type;]] }; - name = { local_code = [[local name = stanza.name]] }; + name = { local_code = [[local name = stanza.name;]] }; split_to = { -- The stanza's split to address depends = { "jid_split", "to" }; local_code = [[local to_node, to_host, to_resource = jid_split(to);]];