MUC: Remove <item> from room destruction announcement, it's added later somwehere
authorKim Alvefur <zash@zash.se>
Wed, 11 Jul 2018 11:48:56 +0200
changeset 9020 1184f5762592
parent 9019 946ae1181c57
child 9021 73320e33762d
MUC: Remove <item> from room destruction announcement, it's added later somwehere
plugins/muc/muc.lib.lua
--- 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