Comparison

core/portmanager.lua @ 6663:d3023dd07cb6

portmanager, s2smanager, sessionmanager, stanza_router, storagemanager, usermanager, util.xml: Add luacheck annotations
author Matthew Wild <mwild1@gmail.com>
date Wed, 06 May 2015 19:20:07 +0100
parent 6549:46d7ede2e037
child 6686:c5b512cddda0
comparison
equal deleted inserted replaced
6662:5ef319efedba 6663:d3023dd07cb6
39 -- service_name, interface (string), port (number) 39 -- service_name, interface (string), port (number)
40 local active_services = multitable.new(); 40 local active_services = multitable.new();
41 41
42 --- Private helpers 42 --- Private helpers
43 43
44 local function error_to_friendly_message(service_name, port, err) 44 local function error_to_friendly_message(service_name, port, err) --luacheck: ignore 212/service_name
45 local friendly_message = err; 45 local friendly_message = err;
46 if err:match(" in use") then 46 if err:match(" in use") then
47 -- FIXME: Use service_name here 47 -- FIXME: Use service_name here
48 if port == 5222 or port == 5223 or port == 5269 then 48 if port == 5222 or port == 5223 or port == 5269 then
49 friendly_message = "check that Prosody or another XMPP server is " 49 friendly_message = "check that Prosody or another XMPP server is "