aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-04 17:15:47 +0200
committerKim Alvefur <zash@zash.se>2016-04-04 17:15:47 +0200
commitc4b8924efae6903e4f1669e04fd832580fde8240 (patch)
treec65302078af0ba3e2f8434edd24b9ea862f735fe
parentc841d558f69f844bf741e8af847c9aeaa7350627 (diff)
downloadprosody-c4b8924efae6903e4f1669e04fd832580fde8240.tar.gz
prosody-c4b8924efae6903e4f1669e04fd832580fde8240.zip
mod_presence: Send unavailable presence when roster items are removed (fixes #331)
-rw-r--r--plugins/mod_presence.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index 5562fecf..d4f2f28d 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -374,6 +374,7 @@ module:hook("roster-item-removed", function (event)
end
if subscription == "both" or subscription == "to" or ask then
+ send_presence_of_available_resources(username, module.host, jid, session, st.presence({type="unavailable"}));
core_post_stanza(session, st.presence({type="unsubscribe", from=session.full_jid, to=jid}));
end