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