Diff

plugins/muc/mod_muc.lua @ 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
parent 9081:ce57c69a20e2
child 9191:5192adc5c47f
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;