aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/muc/mod_muc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 7704adfe..cc0c675b 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -398,8 +398,8 @@ for event_name, method in pairs {
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