# HG changeset patch # User Waqas Hussain # Date 1275658218 -18000 # Node ID a19dbb6446a0e33d1b653412c1bf390fc2c81f4f # Parent 1f73b3a960cf447b5f1a426ac414f78ec599dcc8 mod_presence: Don't stop pre-event for outgoing probes. diff -r 1f73b3a960cf -r a19dbb6446a0 plugins/mod_presence.lua --- a/plugins/mod_presence.lua Fri Jun 04 18:24:09 2010 +0500 +++ b/plugins/mod_presence.lua Fri Jun 04 18:30:18 2010 +0500 @@ -187,7 +187,10 @@ 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