From bfba1b141b6b2e95940c056eaa8e1bd7f7bd8a21 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Mon, 6 Jul 2009 01:37:57 +0500 Subject: mod_presence: Fixed: Presence probe replies now get sent to the full JID of the probe sender --- plugins/mod_presence.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index 89136e3d..5618d589 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -209,7 +209,7 @@ function handle_inbound_presence_subscriptions_and_probes(origin, stanza, from_b log("debug", "inbound presence "..stanza.attr.type.." from "..from_bare.." for "..to_bare); if stanza.attr.type == "probe" then if rostermanager.is_contact_subscribed(node, host, from_bare) then - if 0 == send_presence_of_available_resources(node, host, from_bare, origin, core_route_stanza) then + if 0 == send_presence_of_available_resources(node, host, st_from, origin, core_route_stanza) then -- TODO send last recieved unavailable presence (or we MAY do nothing, which is fine too) end else -- cgit v1.2.3