aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
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();