diff plugins/muc/lock.lib.lua @ 11120:b2331f3dfeea

Merge 0.11->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 30 Sep 2020 09:50:33 +0100
parents c1edeb9fe337
children 74b9e05af71e
line wrap: on
line diff
--- a/plugins/muc/lock.lib.lua	Thu Oct 01 15:08:58 2020 +0100
+++ b/plugins/muc/lock.lib.lua	Wed Sep 30 09:50:33 2020 +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);