aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-08 16:38:46 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-08 16:38:46 +0100
commit5131cb250acb2c458e4be42f4c1187fdac76fe26 (patch)
tree3ccb251918e5768d44686c9d590ba1c95afa0083 /prosodyctl
parent6776117801de68eddc5da5f793300e5919dbbca3 (diff)
downloadprosody-5131cb250acb2c458e4be42f4c1187fdac76fe26.tar.gz
prosody-5131cb250acb2c458e4be42f4c1187fdac76fe26.zip
prosodyctl: Fix traceback when issued with no parameters
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index 0d687986..2557d865 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -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