Changeset

9093:04a284c5b88b

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
author Kim Alvefur <zash@zash.se>
date Fri, 03 Aug 2018 22:25:16 +0200
parents 9092:5110da3a71eb
children 9094:05979ae1e38a
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;