Software / code / prosody
Comparison
prosodyctl @ 10133:73bae75c6d77
prosodyctl: Corrected the calls to the recently moved function 'admin_operation'
| author | João Duarte <jvsDuarte08@gmail.com> |
|---|---|
| date | Tue, 25 Jun 2019 13:22:22 +0100 |
| parent | 10132:b59535964e81 |
| child | 10134:e5132c4cfb81 |
comparison
equal
deleted
inserted
replaced
| 10132:b59535964e81 | 10133:73bae75c6d77 |
|---|---|
| 97 os.execute("luarocks list --tree="..prosody.paths.data.."/rocks") | 97 os.execute("luarocks list --tree="..prosody.paths.data.."/rocks") |
| 98 end | 98 end |
| 99 end | 99 end |
| 100 | 100 |
| 101 function commands.admin_add(arg) | 101 function commands.admin_add(arg) |
| 102 admin_operation("add ", arg) | 102 prosodyctl.admin_operation("add ", arg) |
| 103 end | 103 end |
| 104 | 104 |
| 105 function commands.admin_remove(arg) | 105 function commands.admin_remove(arg) |
| 106 admin_operation("remove ", arg) | 106 prosodyctl.admin_operation("remove ", arg) |
| 107 end | 107 end |
| 108 | 108 |
| 109 function commands.enabled_plugins() | 109 function commands.enabled_plugins() |
| 110 for module in modulemanager.get_modules_for_host() do | 110 for module in modulemanager.get_modules_for_host() do |
| 111 show_warning("%s", module) | 111 show_warning("%s", module) |