# HG changeset patch # User Waqas Hussain # Date 1259222530 -18000 # Node ID 3b38ec8790764185d6aec53214cf19f024d55fdb # Parent 3987078bb179cd8c24fa56f08df34b9b2a48d27f mod_presence: Use the local host as origin for subscription request acks. diff -r 3987078bb179 -r 3b38ec879076 plugins/mod_presence.lua --- a/plugins/mod_presence.lua Thu Nov 26 13:00:11 2009 +0500 +++ b/plugins/mod_presence.lua Thu Nov 26 13:02:10 2009 +0500 @@ -230,7 +230,7 @@ -- 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);