# HG changeset patch # User Kim Alvefur # Date 1586807581 -7200 # Node ID df6227e288e57c7da6f178be25f92cd520caf9bb # Parent 45c5603a6c0720ce617b8a58213386db740e707f mod_firewall: Fix use of unpack() on Lua 5.3 unpack() was previously a global function, it moved into the table library in either Lua 5.2 or 5.3 diff -r 45c5603a6c07 -r df6227e288e5 mod_firewall/actions.lib.lua --- a/mod_firewall/actions.lib.lua Mon Apr 13 15:48:58 2020 +0100 +++ b/mod_firewall/actions.lib.lua Mon Apr 13 21:53:01 2020 +0200 @@ -1,3 +1,5 @@ +local unpack = table.unpack or unpack; + local interpolation = require "util.interpolation"; local template = interpolation.new("%b$$", function (s) return ("%q"):format(s) end); diff -r 45c5603a6c07 -r df6227e288e5 mod_firewall/conditions.lib.lua --- a/mod_firewall/conditions.lib.lua Mon Apr 13 15:48:58 2020 +0100 +++ b/mod_firewall/conditions.lib.lua Mon Apr 13 21:53:01 2020 +0200 @@ -2,6 +2,7 @@ local condition_handlers = {}; local jid = require "util.jid"; +local unpack = table.unpack or unpack; -- Helper to convert user-input strings (yes/true//no/false) to a bool local function string_to_boolean(s)