Comparison

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
comparison
equal deleted inserted replaced
2414:97b4229982f5 2415:07d7036040ee
91 global_code = [[local jid_bare = require "util.jid".bare;]]; 91 global_code = [[local jid_bare = require "util.jid".bare;]];
92 }; 92 };
93 to = { local_code = [[local to = stanza.attr.to or jid_bare(session.full_jid);]]; depends = { "jid_bare" } }; 93 to = { local_code = [[local to = stanza.attr.to or jid_bare(session.full_jid);]]; depends = { "jid_bare" } };
94 from = { local_code = [[local from = stanza.attr.from;]] }; 94 from = { local_code = [[local from = stanza.attr.from;]] };
95 type = { local_code = [[local type = stanza.attr.type;]] }; 95 type = { local_code = [[local type = stanza.attr.type;]] };
96 name = { local_code = [[local name = stanza.name]] }; 96 name = { local_code = [[local name = stanza.name;]] };
97 split_to = { -- The stanza's split to address 97 split_to = { -- The stanza's split to address
98 depends = { "jid_split", "to" }; 98 depends = { "jid_split", "to" };
99 local_code = [[local to_node, to_host, to_resource = jid_split(to);]]; 99 local_code = [[local to_node, to_host, to_resource = jid_split(to);]];
100 }; 100 };
101 split_from = { -- The stanza's split from address 101 split_from = { -- The stanza's split from address