Diff

plugins/muc/muc.lib.lua @ 9017:1184f5762592

MUC: Remove <item> from room destruction announcement, it's added later somwehere
author Kim Alvefur <zash@zash.se>
date Wed, 11 Jul 2018 11:48:56 +0200
parent 9011:ce8e5206aeba
child 9022:293ebfed71f7
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Wed Jul 11 03:38:01 2018 +0200
+++ b/plugins/muc/muc.lib.lua	Wed Jul 11 11:48:56 2018 +0200
@@ -843,7 +843,6 @@
 
 function room_mt:destroy(newjid, reason, password)
 	local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user"})
-		:tag("item", { affiliation='none', role='none' }):up()
 		:tag("destroy", {jid=newjid});
 	if reason then x:tag("reason"):text(reason):up(); end
 	if password then x:tag("password"):text(password):up(); end