prosodyctl
changeset 7923 1db51061342b
parent 7682 589e27b47d56
child 7925 2fd20f372cb1
equal deleted inserted replaced
7922:251bf68922d9 7923: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