From 399ddd601d5e578ca89aef7754cd0001d71bc537 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 3 Aug 2018 22:25:16 +0200 Subject: 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 --- plugins/muc/mod_muc.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') 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; -- cgit v1.2.3