Diff

plugins/muc/lock.lib.lua @ 7999:980606856882

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Thu, 23 Mar 2017 01:30:58 +0100
parent 7408:cf53081ce767
child 8565:301e5b82b4d8
line wrap: on
line diff
--- a/plugins/muc/lock.lib.lua	Tue Mar 21 04:41:40 2017 +0100
+++ b/plugins/muc/lock.lib.lua	Thu Mar 23 01:30:58 2017 +0100
@@ -42,6 +42,7 @@
 -- Don't let users into room while it is locked
 module:hook("muc-occupant-pre-join", function(event)
 	if not event.is_new_room and is_locked(event.room) then -- Deny entry
+		module:log("debug", "Room is locked, denying entry");
 		event.origin.send(st.error_reply(event.stanza, "cancel", "item-not-found"));
 		return true;
 	end