Software / code / prosody
Changeset
8943:3a416b866c94
MUC: Remove text body from affiliation change notification
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 27 Jun 2018 15:28:45 +0100 |
| parents | 8942:ecb5e13d97bb |
| children | 8944:200ec7d38a0e |
| files | plugins/muc/affiliation_notify.lib.lua |
| diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/affiliation_notify.lib.lua Wed Jun 27 15:25:35 2018 +0100 +++ b/plugins/muc/affiliation_notify.lib.lua Wed Jun 27 15:28:45 2018 +0100 @@ -19,12 +19,11 @@ module:hook("muc-set-affiliation", function(event) local room = event.room; if not event.in_room then - local body = string.format("Your affiliation in room %s is now %s.", room.jid, event.affiliation); local stanza = st.message({ type = "headline"; from = room.jid; to = event.jid; - }, body) + }) :tag("x", {xmlns = "http://jabber.org/protocol/muc#user"}) :tag("status", {code="101"}):up() :up();