# HG changeset patch # User daurnimator # Date 1396468597 14400 # Node ID a5928fdeaf971394082d84bbf6a10be8aee76de6 # Parent f937bb5c83c30693398cd3c03198b322ae576886 plugins/muc/lock.lib: Need to let creator into the locked room :) diff -r f937bb5c83c3 -r a5928fdeaf97 plugins/muc/lock.lib.lua --- a/plugins/muc/lock.lib.lua Wed Apr 02 15:48:25 2014 -0400 +++ b/plugins/muc/lock.lib.lua Wed Apr 02 15:56:37 2014 -0400 @@ -45,7 +45,7 @@ -- Don't let users into room while it is locked module:hook("muc-occupant-pre-join", function(event) - if is_locked(event.room) then -- Deny entry + if not event.is_new_room and is_locked(event.room) then -- Deny entry event.origin.send(st.error_reply(event.stanza, "cancel", "item-not-found")); return true; end