Software /
code /
prosody
Comparison
plugins/mod_admin_shell.lua @ 12538:0f56587bb37f
mod_admin_shell: Drop unused argument [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 31 May 2022 13:26:44 +0200 |
parent | 12537:74418f8096b0 |
child | 12540:0684506c99d3 |
comparison
equal
deleted
inserted
replaced
12537:74418f8096b0 | 12538:0f56587bb37f |
---|---|
511 ["identity"] = function(ident) return ident.type .. "/" .. ident.category; end, | 511 ["identity"] = function(ident) return ident.type .. "/" .. ident.category; end, |
512 ["adhoc-provider"] = item_name, | 512 ["adhoc-provider"] = item_name, |
513 ["auth-provider"] = item_name, | 513 ["auth-provider"] = item_name, |
514 ["storage-provider"] = item_name, | 514 ["storage-provider"] = item_name, |
515 ["http-provider"] = function(item, mod) return mod:http_url(item.name, item.default_path); end, | 515 ["http-provider"] = function(item, mod) return mod:http_url(item.name, item.default_path); end, |
516 ["net-provider"] = function(item, mod) | 516 ["net-provider"] = function(item) |
517 local service_name = item.name; | 517 local service_name = item.name; |
518 local ports_list = {}; | 518 local ports_list = {}; |
519 for _, interface, port in portmanager.get_active_services():iter(service_name, nil, nil) do | 519 for _, interface, port in portmanager.get_active_services():iter(service_name, nil, nil) do |
520 table.insert(ports_list, "["..interface.."]:"..port); | 520 table.insert(ports_list, "["..interface.."]:"..port); |
521 end | 521 end |