Software /
code /
prosody
Comparison
prosodyctl @ 9798:7ce7ee9cd1c5
prosodyctl: Fix module.command invocation (thanks woffs)
The first argument is already removed once since c7727c13260f
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 18 Jan 2019 18:30:41 +0100 |
parent | 9795:02735bc82126 |
child | 9826:bdc2a024933b |
comparison
equal
deleted
inserted
replaced
9797:071538a567d5 | 9798:7ce7ee9cd1c5 |
---|---|
1298 show_message("Failed to load module '"..module_name.."': "..err); | 1298 show_message("Failed to load module '"..module_name.."': "..err); |
1299 os.exit(1); | 1299 os.exit(1); |
1300 end | 1300 end |
1301 end | 1301 end |
1302 | 1302 |
1303 table.remove(arg, 1); | |
1304 | |
1305 local module = modulemanager.get_module("*", module_name); | 1303 local module = modulemanager.get_module("*", module_name); |
1306 if not module then | 1304 if not module then |
1307 show_message("Failed to load module '"..module_name.."': Unknown error"); | 1305 show_message("Failed to load module '"..module_name.."': Unknown error"); |
1308 os.exit(1); | 1306 os.exit(1); |
1309 end | 1307 end |