aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-11 02:29:01 +0200
committerKim Alvefur <zash@zash.se>2018-07-11 02:29:01 +0200
commit0ac83a5e320b109a0736aa469a9a3d33913d1697 (patch)
tree395046517b787840fbfc9debac7540c7b83225bc
parentc259a6b5121af6e504e7c193deae04b804dbc74f (diff)
downloadprosody-0ac83a5e320b109a0736aa469a9a3d33913d1697.tar.gz
prosody-0ac83a5e320b109a0736aa469a9a3d33913d1697.zip
MUC: Include destruction reason and other info in destroyed event
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
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