Diff

plugins/muc/muc.lib.lua @ 7997:aca13c433e45

MUC: Log when denying entry to locked room
author Kim Alvefur <zash@zash.se>
date Wed, 22 Mar 2017 14:13:28 +0100
parent 7684:65ba769d9f05
child 8174:260886554512
line wrap: on
line diff
--- 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