aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authormatthew <matthew@silver>2009-09-05 23:01:06 +0100
committermatthew <matthew@silver>2009-09-05 23:01:06 +0100
commit62ef87bb8fd695c0c63fd07b83dee477d7b365d6 (patch)
tree70ae38642101513d0c888d2c7f840a60cf686d0c /plugins
parentb4fa86acea319d65c8866accf38dd870e5d381aa (diff)
parentc1e71bdec84a2ac4c5ab5bca75854a9e36464612 (diff)
downloadprosody-62ef87bb8fd695c0c63fd07b83dee477d7b365d6.tar.gz
prosody-62ef87bb8fd695c0c63fd07b83dee477d7b365d6.zip
Merge with 0.5
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_presence.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index f78a5950..d696612d 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -29,7 +29,7 @@ function core_route_stanza(origin, stanza)
if stanza.attr.type ~= nil and stanza.attr.type ~= "unavailable" and stanza.attr.type ~= "error" then
local node, host = jid_split(stanza.attr.to);
host = hosts[host];
- if host and host.type == "local" then
+ if node and host and host.type == "local" then
handle_inbound_presence_subscriptions_and_probes(origin, stanza, jid_bare(stanza.attr.from), jid_bare(stanza.attr.to), core_route_stanza);
return;
end