# HG changeset patch # User Kim Alvefur # Date 1531273081 -7200 # Node ID 946ae1181c570953b718ffbf3944da5ecb265de3 # Parent dc606dc89f44e607fca6a731e994acc62a0d357a MUC: Allow an admin to recreate destroyed rooms diff -r dc606dc89f44 -r 946ae1181c57 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Wed Jul 11 03:37:57 2018 +0200 +++ b/plugins/muc/mod_muc.lua Wed Jul 11 03:38:01 2018 +0200 @@ -398,8 +398,8 @@ if room and room._data.destroyed then if stanza.attr.type == nil and stanza.name == "presence" then - if room._data.locked < os.time() then - -- Allow the room to be recreated after time has passed + if is_admin(stanza.attr.from) or room._data.locked < os.time() then + -- Allow the room to be recreated by admin or after time has passed delete_room(room); room = nil; else