Diff

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
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Tue Jul 10 00:52:46 2018 +0200
+++ b/plugins/muc/muc.lib.lua	Tue Jul 10 21:10:12 2018 +0200
@@ -848,6 +848,7 @@
 	if reason then x:tag("reason"):text(reason):up(); end
 	if password then x:tag("password"):text(password):up(); end
 	x:up();
+	self.destroying = reason or true;
 	self:clear(x);
 	module:fire_event("muc-room-destroyed", { room = self });
 	return true;