MUC: Log when denying entry to locked room
authorKim Alvefur <zash@zash.se>
Wed, 22 Mar 2017 14:13:28 +0100
changeset 8000 aca13c433e45
parent 7999 f4c0fb54e16c
child 8001 604beb13596a
MUC: Log when denying entry to locked room
plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Wed Mar 22 12:02:52 2017 +0100
+++ b/plugins/muc/muc.lib.lua	Wed Mar 22 14:13:28 2017 +0100
@@ -496,6 +496,7 @@
 							self.locked = nil; -- Older groupchat protocol doesn't lock
 						end
 					elseif self.locked then -- Deny entry
+						module:log("debug", "Room is locked, denying entry");
 						origin.send(st.error_reply(stanza, "cancel", "item-not-found"));
 						return;
 					end