# HG changeset patch # User Kim Alvefur # Date 1531268941 -7200 # Node ID ce8e5206aeba854c978105a2ed6ab88b824ae7c5 # Parent 3c5ddd53fe5000e4bb4345a903ac23cb61c6b9ff MUC: Include destruction reason and other info in destroyed event diff -r 3c5ddd53fe50 -r ce8e5206aeba plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Wed Jul 11 02:25:07 2018 +0200 +++ b/plugins/muc/muc.lib.lua Wed Jul 11 02:29:01 2018 +0200 @@ -850,7 +850,7 @@ 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