equal
deleted
inserted
replaced
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 |