# HG changeset patch # User Waqas Hussain # Date 1252182756 -18000 # Node ID 38d87682cb4aefdc1e98a5ec82d2d9aef012a935 # Parent f4170bc829697d086e5e9c3307dca745a7e932bd mod_presence: Fixed: Don't recursively handle inbound presence directed at local host diff -r f4170bc82969 -r 38d87682cb4a plugins/mod_presence.lua --- a/plugins/mod_presence.lua Sun Sep 06 01:31:18 2009 +0500 +++ b/plugins/mod_presence.lua Sun Sep 06 01:32:36 2009 +0500 @@ -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