Software /
code /
prosody
Comparison
plugins/mod_admin_shell.lua @ 13561:d8f7a8a26965
mod_admin_shell: Refactor end of module:load
Meant to improve clarity and make improving easier
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 15 Nov 2024 15:48:07 +0100 |
parent | 13542:67288253d9a2 |
child | 13562:f77c247258cc |
comparison
equal
deleted
inserted
replaced
13560:ccf389f54a93 | 13561:d8f7a8a26965 |
---|---|
656 end | 656 end |
657 end | 657 end |
658 end | 658 end |
659 end | 659 end |
660 | 660 |
661 return ok, (ok and "Module loaded onto "..count.." host"..(count ~= 1 and "s" or "")) or ("Last error: "..tostring(err)); | 661 if not ok then |
662 return ok, "Last error: "..tostring(err); | |
663 end | |
664 return ok, "Module loaded onto "..count.." host"..(count ~= 1 and "s" or ""); | |
662 end | 665 end |
663 | 666 |
664 describe_command [[module:unload(module, host) - The same, but just unloads the module from memory]] | 667 describe_command [[module:unload(module, host) - The same, but just unloads the module from memory]] |
665 function def_env.module:unload(name, hosts) | 668 function def_env.module:unload(name, hosts) |
666 hosts = get_hosts_with_module(hosts, name); | 669 hosts = get_hosts_with_module(hosts, name); |