mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
mod_admin_shell: Remove obsolete module:load() argument from 0.8 time
This 'config' argument was removed without explanation in d8dbf569766c
This commit is contained in:
parent
a2f8218a63
commit
0e7e43f62f
1 changed files with 2 additions and 2 deletions
|
@ -575,14 +575,14 @@ function def_env.module:info(name, hosts)
|
|||
return true;
|
||||
end
|
||||
|
||||
function def_env.module:load(name, hosts, config)
|
||||
function def_env.module:load(name, hosts)
|
||||
hosts = get_hosts_with_module(hosts);
|
||||
|
||||
-- Load the module for each host
|
||||
local ok, err, count, mod = true, nil, 0;
|
||||
for host in hosts do
|
||||
if (not modulemanager.is_loaded(host, name)) then
|
||||
mod, err = modulemanager.load(host, name, config);
|
||||
mod, err = modulemanager.load(host, name);
|
||||
if not mod then
|
||||
ok = false;
|
||||
if err == "global-module-already-loaded" then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue