diff options
author | Kim Alvefur <zash@zash.se> | 2016-04-04 17:15:47 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-04-04 17:15:47 +0200 |
commit | c4b8924efae6903e4f1669e04fd832580fde8240 (patch) | |
tree | c65302078af0ba3e2f8434edd24b9ea862f735fe | |
parent | c841d558f69f844bf741e8af847c9aeaa7350627 (diff) | |
download | prosody-c4b8924efae6903e4f1669e04fd832580fde8240.tar.gz prosody-c4b8924efae6903e4f1669e04fd832580fde8240.zip |
mod_presence: Send unavailable presence when roster items are removed (fixes #331)
-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 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 |