aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-06-27 15:28:45 +0100
committerMatthew Wild <mwild1@gmail.com>2018-06-27 15:28:45 +0100
commitc23785b9e06c674c90aca171cd52ed2b21fd1edb (patch)
tree49a6fd15a8d77caa0342da608a1579b029ef7bda /plugins
parentda880932738f33f6d105163829afc7460a97550f (diff)
downloadprosody-c23785b9e06c674c90aca171cd52ed2b21fd1edb.tar.gz
prosody-c23785b9e06c674c90aca171cd52ed2b21fd1edb.zip
MUC: Remove text body from affiliation change notification
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/affiliation_notify.lib.lua3
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();