From dfb8c6b98c69a2f62f60f9629b9266bf8378eac0 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 4 Jun 2010 18:30:18 +0500 Subject: mod_presence: Don't stop pre-event for outgoing probes. --- plugins/mod_presence.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index a74e24c3..509d5862 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -187,7 +187,10 @@ function handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_ local st_from, st_to = stanza.attr.from, stanza.attr.to; stanza.attr.from, stanza.attr.to = from_bare, to_bare; log("debug", "outbound presence "..stanza.attr.type.." from "..from_bare.." for "..to_bare); - if stanza.attr.type == "subscribe" then + if stanza.attr.type == "probe" then + stanza.attr.from, stanza.attr.to = st_from, st_to; + return; + elseif stanza.attr.type == "subscribe" then -- 1. route stanza -- 2. roster push (subscription = none, ask = subscribe) if rostermanager.set_contact_pending_out(node, host, to_bare) then -- cgit v1.2.3