aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-11-26 13:02:10 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-11-26 13:02:10 +0500
commit0554c71543ee4a199b056accac6a4bc1bc26d216 (patch)
tree76dca398320ba65d4f52b0210b9d0303434e137a
parentcfce018b808e0978ab6d573ef09a4a9d4ec0eddd (diff)
downloadprosody-0554c71543ee4a199b056accac6a4bc1bc26d216.tar.gz
prosody-0554c71543ee4a199b056accac6a4bc1bc26d216.zip
mod_presence: Use the local host as origin for subscription request acks.
-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 939df6b8..d3818a5d 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -230,7 +230,7 @@ function handle_inbound_presence_subscriptions_and_probes(origin, stanza, from_b
-- TODO send last recieved unavailable presence (or we MAY do nothing, which is fine too)
end
else
- core_route_stanza(origin, st.presence({from=to_bare, to=from_bare, type="unavailable"})); -- acknowledging receipt
+ core_route_stanza(hosts[host], st.presence({from=to_bare, to=from_bare, type="unavailable"})); -- acknowledging receipt
if not rostermanager.is_contact_pending_in(node, host, from_bare) then
if rostermanager.set_contact_pending_in(node, host, from_bare) then
sessionmanager.send_to_available_resources(node, host, stanza);