Software /
code /
prosody
Comparison
plugins/mod_admin_shell.lua @ 12603:05ca75309fa0
mod_admin_shell: Remove obsolete module:load() argument from 0.8 time
This 'config' argument was removed without explanation in d8dbf569766c
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 05 Aug 2022 14:41:13 +0200 |
parent | 12589:39ae08180c81 |
child | 12638:a47af78a9347 |
comparison
equal
deleted
inserted
replaced
12602:9184fe3d489a | 12603:05ca75309fa0 |
---|---|
573 end | 573 end |
574 end | 574 end |
575 return true; | 575 return true; |
576 end | 576 end |
577 | 577 |
578 function def_env.module:load(name, hosts, config) | 578 function def_env.module:load(name, hosts) |
579 hosts = get_hosts_with_module(hosts); | 579 hosts = get_hosts_with_module(hosts); |
580 | 580 |
581 -- Load the module for each host | 581 -- Load the module for each host |
582 local ok, err, count, mod = true, nil, 0; | 582 local ok, err, count, mod = true, nil, 0; |
583 for host in hosts do | 583 for host in hosts do |
584 if (not modulemanager.is_loaded(host, name)) then | 584 if (not modulemanager.is_loaded(host, name)) then |
585 mod, err = modulemanager.load(host, name, config); | 585 mod, err = modulemanager.load(host, name); |
586 if not mod then | 586 if not mod then |
587 ok = false; | 587 ok = false; |
588 if err == "global-module-already-loaded" then | 588 if err == "global-module-already-loaded" then |
589 if count > 0 then | 589 if count > 0 then |
590 ok, err, count = true, nil, 1; | 590 ok, err, count = true, nil, 1; |