aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-04-02 15:56:37 -0400
committerdaurnimator <quae@daurnimator.com>2014-04-02 15:56:37 -0400
commitefeed80315ee278524a5a85b565e138ea822a50d (patch)
tree3a7bf65835ad79adafac777c5b354861bdc18731 /plugins
parentcada6120bc227c8ae60d765c842ce699c311300e (diff)
downloadprosody-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.lua2
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