diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-06-27 15:28:45 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-06-27 15:28:45 +0100 |
commit | d4eb45c92e6cb5a987c7b54b29745bed40e06ead (patch) | |
tree | 49a6fd15a8d77caa0342da608a1579b029ef7bda /plugins/muc | |
parent | 030a3aab7740910d404fd6bee6d82f83380452fb (diff) | |
download | prosody-d4eb45c92e6cb5a987c7b54b29745bed40e06ead.tar.gz prosody-d4eb45c92e6cb5a987c7b54b29745bed40e06ead.zip |
MUC: Remove text body from affiliation change notification
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/affiliation_notify.lib.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/muc/affiliation_notify.lib.lua b/plugins/muc/affiliation_notify.lib.lua index c361a974..21226254 100644 --- a/plugins/muc/affiliation_notify.lib.lua +++ b/plugins/muc/affiliation_notify.lib.lua @@ -19,12 +19,11 @@ local st = require "util.stanza"; 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(); |