Comparison

plugins/muc/muc.lib.lua @ 9007:695904638cfa

MUC: Flag rooms being destroyed (fixes #887)
author Kim Alvefur <zash@zash.se>
date Tue, 10 Jul 2018 21:10:12 +0200
parent 9003:a971023e9b6e
child 9011:ce8e5206aeba
comparison
equal deleted inserted replaced
9006:935e5ca43792 9007:695904638cfa
846 :tag("item", { affiliation='none', role='none' }):up() 846 :tag("item", { affiliation='none', role='none' }):up()
847 :tag("destroy", {jid=newjid}); 847 :tag("destroy", {jid=newjid});
848 if reason then x:tag("reason"):text(reason):up(); end 848 if reason then x:tag("reason"):text(reason):up(); end
849 if password then x:tag("password"):text(password):up(); end 849 if password then x:tag("password"):text(password):up(); end
850 x:up(); 850 x:up();
851 self.destroying = reason or true;
851 self:clear(x); 852 self:clear(x);
852 module:fire_event("muc-room-destroyed", { room = self }); 853 module:fire_event("muc-room-destroyed", { room = self });
853 return true; 854 return true;
854 end 855 end
855 856