aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-22 14:13:28 +0100
committerKim Alvefur <zash@zash.se>2017-03-22 14:13:28 +0100
commitb7778932eb92efdcbdf9dc9e8608a6221887b624 (patch)
tree5f73452a499023b782cc82062159f56720e8374e /plugins
parent04002ee277caaa45d1346d734024b7d9709f6cd8 (diff)
downloadprosody-b7778932eb92efdcbdf9dc9e8608a6221887b624.tar.gz
prosody-b7778932eb92efdcbdf9dc9e8608a6221887b624.zip
MUC: Log when denying entry to locked room
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index cc147d19..df4c50bb 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -496,6 +496,7 @@ function room_mt:handle_to_occupant(origin, stanza) -- PM, vCards, etc
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