Comparison

prosodyctl @ 12589:39ae08180c81

compat: Remove handling of Lua 5.1 location of 'unpack' function
author Kim Alvefur <zash@zash.se>
date Mon, 11 Jul 2022 19:07:38 +0200
parent 12578:10bb58ad5583
child 12864:9f9633364044
comparison
equal deleted inserted replaced
12588:b15d3cf98ba6 12589:39ae08180c81
578 show_message(error_messages[ret]); 578 show_message(error_messages[ret]);
579 return 1; 579 return 1;
580 end 580 end
581 -- ejabberdctl compatibility 581 -- ejabberdctl compatibility
582 582
583 local unpack = table.unpack or unpack; -- luacheck: ignore 113 583 local unpack = table.unpack;
584 584
585 function commands.register(arg) 585 function commands.register(arg)
586 local user, host, password = unpack(arg); 586 local user, host, password = unpack(arg);
587 if (not (user and host)) or arg[1] == "--help" then 587 if (not (user and host)) or arg[1] == "--help" then
588 if user ~= "--help" then 588 if user ~= "--help" then