Diff

prosodyctl @ 7920:1db51061342b

prosodyctl: Handle move of 'unpack' in Lua 5.2
author Kim Alvefur <zash@zash.se>
date Mon, 27 Feb 2017 14:55:01 +0100
parent 7679:589e27b47d56
child 7922:2fd20f372cb1
line wrap: on
line diff
--- a/prosodyctl	Sun Feb 26 20:31:08 2017 +0100
+++ b/prosodyctl	Mon Feb 27 14:55:01 2017 +0100
@@ -621,6 +621,8 @@
 end
 -- ejabberdctl compatibility
 
+local unpack = table.unpack or unpack; -- luacheck: ignore 113
+
 function commands.register(arg)
 	local user, host, password = unpack(arg);
 	if (not (user and host)) or arg[1] == "--help" then