diff options
author | daurnimator <quae@daurnimator.com> | 2014-04-02 15:56:37 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-04-02 15:56:37 -0400 |
commit | efeed80315ee278524a5a85b565e138ea822a50d (patch) | |
tree | 3a7bf65835ad79adafac777c5b354861bdc18731 /plugins | |
parent | cada6120bc227c8ae60d765c842ce699c311300e (diff) | |
download | prosody-efeed80315ee278524a5a85b565e138ea822a50d.tar.gz prosody-efeed80315ee278524a5a85b565e138ea822a50d.zip |
plugins/muc/lock.lib: Need to let creator into the locked room :)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/muc/lock.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/lock.lib.lua b/plugins/muc/lock.lib.lua index 73dfa151..7cf19be3 100644 --- a/plugins/muc/lock.lib.lua +++ b/plugins/muc/lock.lib.lua @@ -45,7 +45,7 @@ end, 10); -- 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 |