# HG changeset patch # User Matthew Wild # Date 1428085375 -3600 # Node ID 469151b0806515cd1bc28e64fa43506d802bd98b # Parent a455dac79f58cdb040a28df3cf93b86e8407bad8 hostmanager: Rename variable to avoid shadowing 'type()' function diff -r a455dac79f58 -r 469151b08065 core/hostmanager.lua --- a/core/hostmanager.lua Fri Apr 03 19:20:24 2015 +0100 +++ b/core/hostmanager.lua Fri Apr 03 19:22:55 2015 +0100 @@ -55,8 +55,8 @@ prosody_events.add_handler("server-starting", load_enabled_hosts); local function host_send(stanza) - local name, type = stanza.name, stanza.attr.type; - if type == "error" or (name == "iq" and type == "result") then + local name, stanza_type = stanza.name, stanza.attr.type; + if stanza_type == "error" or (name == "iq" and stanza_type == "result") then local dest_host_name = select(2, jid_split(stanza.attr.to)); local dest_host = hosts[dest_host_name] or { type = "unknown" }; log("warn", "Unhandled response sent to %s host %s: %s", dest_host.type, dest_host_name, tostring(stanza));