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 | 1e3a0dc5df58ff9e5d1f518e63dec18b3499bf46 (patch) | |
tree | c65302078af0ba3e2f8434edd24b9ea862f735fe /plugins/mod_presence.lua | |
parent | 9f6ac546e1dc284d5c25b9994534302e897d6484 (diff) | |
download | prosody-1e3a0dc5df58ff9e5d1f518e63dec18b3499bf46.tar.gz prosody-1e3a0dc5df58ff9e5d1f518e63dec18b3499bf46.zip |
mod_presence: Send unavailable presence when roster items are removed (fixes #331)
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 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 |