projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f1d99c
)
mod_presence: Acknowledge subscription requests by responding with an unavailable...
author
Waqas Hussain
<waqas20@gmail.com>
Sun, 22 Nov 2009 16:45:31 +0000
(21:45 +0500)
committer
Waqas Hussain
<waqas20@gmail.com>
Sun, 22 Nov 2009 16:45:31 +0000
(21:45 +0500)
plugins/mod_presence.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_presence.lua
b/plugins/mod_presence.lua
index f83e017b3b54c631bc92b622a58bc4989f590a89..468049cc09b1e5fc5d85c6e15164b5e97824404a 100644
(file)
--- 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);