mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
prosodyctl: Fix traceback when issued with no parameters
This commit is contained in:
parent
6776117801
commit
5131cb250a
1 changed files with 1 additions and 1 deletions
|
@ -444,7 +444,7 @@ end
|
|||
|
||||
---------------------
|
||||
|
||||
if command:match("^mod_") then -- Is a command in a module
|
||||
if command and command:match("^mod_") then -- Is a command in a module
|
||||
local module_name = command:match("^mod_(.+)");
|
||||
local ret, err = modulemanager.load("*", module_name);
|
||||
if not ret then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue