aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/lock.lib.lua
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
commit4c0e0c3c239a4ae8d19c78f0f4d6d6975fa7fdc8 (patch)
tree3a7bf65835ad79adafac777c5b354861bdc18731 /plugins/muc/lock.lib.lua
parentfd4362f97d1d75fa0ae251417801e9c82b4ef03c (diff)
downloadprosody-4c0e0c3c239a4ae8d19c78f0f4d6d6975fa7fdc8.tar.gz
prosody-4c0e0c3c239a4ae8d19c78f0f4d6d6975fa7fdc8.zip
plugins/muc/lock.lib: Need to let creator into the locked room :)
Diffstat (limited to 'plugins/muc/lock.lib.lua')
-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