From 0ac83a5e320b109a0736aa469a9a3d33913d1697 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 11 Jul 2018 02:29:01 +0200 Subject: MUC: Include destruction reason and other info in destroyed event --- plugins/muc/muc.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index b61d72b9..5a295bd9 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -850,7 +850,7 @@ function room_mt:destroy(newjid, reason, password) x:up(); self.destroying = reason or true; self:clear(x); - module:fire_event("muc-room-destroyed", { room = self }); + module:fire_event("muc-room-destroyed", { room = self, reason = reason, newjid = newjid, password = password }); return true; end -- cgit v1.2.3