Comparison

prosodyctl @ 1499:51e3e22b5316

prosodyctl: Fix traceback when issued with no parameters
author Matthew Wild <mwild1@gmail.com>
date Wed, 08 Jul 2009 16:38:46 +0100
parent 1460:5882ed6219ff
child 1500:56d05ba00169
comparison
equal deleted inserted replaced
1498:481dfc89047a 1499:51e3e22b5316
442 end 442 end
443 443
444 444
445 --------------------- 445 ---------------------
446 446
447 if command:match("^mod_") then -- Is a command in a module 447 if command and command:match("^mod_") then -- Is a command in a module
448 local module_name = command:match("^mod_(.+)"); 448 local module_name = command:match("^mod_(.+)");
449 local ret, err = modulemanager.load("*", module_name); 449 local ret, err = modulemanager.load("*", module_name);
450 if not ret then 450 if not ret then
451 show_message("Failed to load module '"..module_name.."': "..err); 451 show_message("Failed to load module '"..module_name.."': "..err);
452 os.exit(1); 452 os.exit(1);