aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_presence.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-11-29 18:29:19 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-11-29 18:29:19 +0500
commitee490c5eabc83cb65e8fb2d83590fb62ba0c1140 (patch)
tree81fb5f90836938c9bff311d363840f11b62bb71f /plugins/mod_presence.lua
parent513d6dfa4aaf3a68d89c4ecb150c3a89f25f8539 (diff)
parentbeb6fa2f210bbf8ea8d976f11728d20c5b41ad42 (diff)
downloadprosody-ee490c5eabc83cb65e8fb2d83590fb62ba0c1140.tar.gz
prosody-ee490c5eabc83cb65e8fb2d83590fb62ba0c1140.zip
Merge with 0.6.
Diffstat (limited to 'plugins/mod_presence.lua')
-rw-r--r--plugins/mod_presence.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index d3818a5d..abbc3a3d 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -220,11 +220,11 @@ 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="unsubscribed"}));
+ core_route_stanza(hosts[host], st.presence({from=to_bare, to=from_bare, type="unsubscribed"}));
end
elseif stanza.attr.type == "subscribe" then
if rostermanager.is_contact_subscribed(node, host, from_bare) then
- core_route_stanza(origin, st.presence({from=to_bare, to=from_bare, type="subscribed"})); -- already subscribed
+ core_route_stanza(hosts[host], st.presence({from=to_bare, to=from_bare, type="subscribed"})); -- already subscribed
-- Sending presence is not clearly stated in the RFC, but it seems appropriate
if 0 == send_presence_of_available_resources(node, host, from_bare, origin, core_route_stanza) then
-- TODO send last recieved unavailable presence (or we MAY do nothing, which is fine too)