aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/muc/mod_muc.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 58b13936..008bafde 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -351,6 +351,9 @@ if module:get_option_boolean("muc_tombstones", true) then
module:hook("muc-room-destroyed",function(event)
local room = event.room;
if not room:get_persistent() then return end
+ if room._data.destroyed then
+ return -- Allow destruction of tombstone
+ end
local tombstone = new_room(room.jid, {
locked = os.time() + ttl;