diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-11-22 21:45:31 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-11-22 21:45:31 +0500 |
commit | 7d63169215f0c4c0384c717980ef54ab458c5cf3 (patch) | |
tree | 91e2c2ef9be6656d3e0f67b2cf305968709b7df4 /plugins/mod_presence.lua | |
parent | bb00a63d236fffcfcbea919c12e8585b1c20cadb (diff) | |
download | prosody-7d63169215f0c4c0384c717980ef54ab458c5cf3.tar.gz prosody-7d63169215f0c4c0384c717980ef54ab458c5cf3.zip |
mod_presence: Acknowledge subscription requests by responding with an unavailable presence.
Diffstat (limited to 'plugins/mod_presence.lua')
-rw-r--r-- | plugins/mod_presence.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index f83e017b..468049cc 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -233,6 +233,7 @@ 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="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); |