aboutsummaryrefslogtreecommitdiffstats
path: root/core/hostmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-04-03 19:22:55 +0100
committerMatthew Wild <mwild1@gmail.com>2015-04-03 19:22:55 +0100
commit0ad8fd85fa831220bb9b408080dfd021bf92480e (patch)
treeee839875ae7618b92c76566552c45a723722c79b /core/hostmanager.lua
parentb13254c2335e51a71717381956ee9a1653b2a129 (diff)
downloadprosody-0ad8fd85fa831220bb9b408080dfd021bf92480e.tar.gz
prosody-0ad8fd85fa831220bb9b408080dfd021bf92480e.zip
hostmanager: Rename variable to avoid shadowing 'type()' function
Diffstat (limited to 'core/hostmanager.lua')
-rw-r--r--core/hostmanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/hostmanager.lua b/core/hostmanager.lua
index 7f9d1610..d7329cd2 100644
--- a/core/hostmanager.lua
+++ b/core/hostmanager.lua
@@ -55,8 +55,8 @@ end
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));