Software /
code /
prosody-modules
Changeset
2075:baa1cb349427
mod_firewall: Pass results as arguments to format instead of shadowning variable [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 11 Mar 2016 18:19:59 +0100 |
parents | 2074:86427261e3c4 |
children | 2076:d2ad556dcfb7 |
files | mod_firewall/conditions.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_firewall/conditions.lib.lua Fri Mar 11 18:18:35 2016 +0100 +++ b/mod_firewall/conditions.lib.lua Fri Mar 11 18:19:59 2016 +0100 @@ -95,8 +95,7 @@ function condition_handlers.INSPECT(path) if path:find("=") then - local path, match = path:match("(.-)=(.*)"); - return ("stanza:find(%q) == %q"):format(path, match); + return ("stanza:find(%q) == %q"):format(path:match("(.-)=(.*)")); end return ("stanza:find(%q)"):format(path); end