Diff

plugins/muc/lock.lib.lua @ 10563:e8db377a2983

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Tue, 24 Dec 2019 00:39:45 +0100 (2019-12-23)
parent 10450:c1edeb9fe337
child 12977:74b9e05af71e
line wrap: on
line diff
--- a/plugins/muc/lock.lib.lua	Tue Dec 24 00:26:40 2019 +0100
+++ b/plugins/muc/lock.lib.lua	Tue Dec 24 00:39:45 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);