# HG changeset patch # User Matthew Wild # Date 1530109725 -3600 # Node ID 3a416b866c94c3a0d66365136ea7000dbf61f64a # Parent ecb5e13d97bb094212d69db7290bb0aa54ba51a1 MUC: Remove text body from affiliation change notification diff -r ecb5e13d97bb -r 3a416b866c94 plugins/muc/affiliation_notify.lib.lua --- 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();