From 5131cb250acb2c458e4be42f4c1187fdac76fe26 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 8 Jul 2009 16:38:46 +0100 Subject: prosodyctl: Fix traceback when issued with no parameters --- prosodyctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prosodyctl') 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 -- cgit v1.2.3