Diff

plugins/muc/lock.lib.lua @ 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
parent 6206:f937bb5c83c3
child 6242:67efeadd9e77
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