Comparison

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
comparison
equal deleted inserted replaced
9016:946ae1181c57 9017:1184f5762592
841 end 841 end
842 end 842 end
843 843
844 function room_mt:destroy(newjid, reason, password) 844 function room_mt:destroy(newjid, reason, password)
845 local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user"}) 845 local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user"})
846 :tag("item", { affiliation='none', role='none' }):up()
847 :tag("destroy", {jid=newjid}); 846 :tag("destroy", {jid=newjid});
848 if reason then x:tag("reason"):text(reason):up(); end 847 if reason then x:tag("reason"):text(reason):up(); end
849 if password then x:tag("password"):text(password):up(); end 848 if password then x:tag("password"):text(password):up(); end
850 x:up(); 849 x:up();
851 self.destroying = reason or true; 850 self.destroying = reason or true;