diff -r 2e36a54906e4 -r c1edeb9fe337 plugins/muc/lock.lib.lua --- a/plugins/muc/lock.lib.lua Mon Nov 25 23:52:45 2019 +0100 +++ b/plugins/muc/lock.lib.lua Tue Nov 26 00:02:13 2019 +0100 @@ -43,7 +43,7 @@ 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);