Software /
code /
prosody
Changeset
6207:a5928fdeaf97
plugins/muc/lock.lib: Need to let creator into the locked room :)
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Wed, 02 Apr 2014 15:56:37 -0400 |
parents | 6206:f937bb5c83c3 |
children | 6208:d724289a5226 |
files | plugins/muc/lock.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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