Diff

plugins/mod_presence.lua @ 1733:d55ee6c66910

Merge with 0.5
author matthew@silver
date Sat, 05 Sep 2009 23:01:06 +0100
parent 1731:38d87682cb4a
child 2038:4ab83f96585a
line wrap: on
line diff
--- a/plugins/mod_presence.lua	Wed Sep 02 19:23:02 2009 +0500
+++ b/plugins/mod_presence.lua	Sat Sep 05 23:01:06 2009 +0100
@@ -29,7 +29,7 @@
 	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