From c23785b9e06c674c90aca171cd52ed2b21fd1edb Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 27 Jun 2018 15:28:45 +0100 Subject: MUC: Remove text body from affiliation change notification --- plugins/muc/affiliation_notify.lib.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/muc') 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(); -- cgit v1.2.3