Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
7919:251bf68922d9 | 7920:1db51061342b |
---|---|
618 | 618 |
619 show_message(error_messages[ret]); | 619 show_message(error_messages[ret]); |
620 return 1; | 620 return 1; |
621 end | 621 end |
622 -- ejabberdctl compatibility | 622 -- ejabberdctl compatibility |
623 | |
624 local unpack = table.unpack or unpack; -- luacheck: ignore 113 | |
623 | 625 |
624 function commands.register(arg) | 626 function commands.register(arg) |
625 local user, host, password = unpack(arg); | 627 local user, host, password = unpack(arg); |
626 if (not (user and host)) or arg[1] == "--help" then | 628 if (not (user and host)) or arg[1] == "--help" then |
627 if user ~= "--help" then | 629 if user ~= "--help" then |