# HG changeset patch # User Kim Alvefur # Date 1533327916 -7200 # Node ID 04a284c5b88b708e8806f4d5d5238d3c69dd8a2d # Parent 5110da3a71eb7d53364bd8c3a6f947c519996a5b MUC: Allow destruction of tombstones (eg via telnet or adhoc command) Otherwise this just updates the timestamp, which is probably the opposite of what the user wanted diff -r 5110da3a71eb -r 04a284c5b88b plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Fri Aug 03 22:24:35 2018 +0200 +++ b/plugins/muc/mod_muc.lua Fri Aug 03 22:25:16 2018 +0200 @@ -351,6 +351,9 @@ 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;