diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-09-06 01:32:36 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-09-06 01:32:36 +0500 |
commit | 55f1133e4e3af74bc342c042d05d777b096f0cbf (patch) | |
tree | a2a3cdde0ffee5fb81fc098fed753664b018e158 /plugins/mod_presence.lua | |
parent | be1b9e55c0d03d04c69895355b974447b5fa21ab (diff) | |
download | prosody-55f1133e4e3af74bc342c042d05d777b096f0cbf.tar.gz prosody-55f1133e4e3af74bc342c042d05d777b096f0cbf.zip |
mod_presence: Fixed: Don't recursively handle inbound presence directed at local host
Diffstat (limited to 'plugins/mod_presence.lua')
-rw-r--r-- | plugins/mod_presence.lua | 2 |
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 |