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 | c23785b9e06c674c90aca171cd52ed2b21fd1edb (patch) | |
tree | 49a6fd15a8d77caa0342da608a1579b029ef7bda /plugins/muc/affiliation_notify.lib.lua | |
parent | da880932738f33f6d105163829afc7460a97550f (diff) | |
download | prosody-c23785b9e06c674c90aca171cd52ed2b21fd1edb.tar.gz prosody-c23785b9e06c674c90aca171cd52ed2b21fd1edb.zip |
MUC: Remove text body from affiliation change notification
Diffstat (limited to 'plugins/muc/affiliation_notify.lib.lua')
-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(); |