aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/lock.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-26 00:02:13 +0100
committerKim Alvefur <zash@zash.se>2019-11-26 00:02:13 +0100
commitb2e9ee4b6bf0950e73252277c9d15c629b2308e0 (patch)
tree2cd07cf97251f564eae0d399b580aa47a115137c /plugins/muc/lock.lib.lua
parent093ef6bb23e47af21bcb5428386ace5013604424 (diff)
downloadprosody-b2e9ee4b6bf0950e73252277c9d15c629b2308e0.tar.gz
prosody-b2e9ee4b6bf0950e73252277c9d15c629b2308e0.zip
MUC: Indicate the component as origin of various errors where there's no room
A room that doesn't exist can't return an error, can it?
Diffstat (limited to 'plugins/muc/lock.lib.lua')
-rw-r--r--plugins/muc/lock.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/lock.lib.lua b/plugins/muc/lock.lib.lua
index 062ab615..32f2647b 100644
--- a/plugins/muc/lock.lib.lua
+++ b/plugins/muc/lock.lib.lua
@@ -43,7 +43,7 @@ end
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"));
+ event.origin.send(st.error_reply(event.stanza, "cancel", "item-not-found", nil, module.host));
return true;
end
end, -30);