changeset 4044:f4999d75d305

Merge
author Matthew Wild <mwild1@gmail.com>
date Wed, 10 Jun 2020 22:20:00 +0100
parents 78ac5500a844 (current diff) a533abe6ffd0 (diff)
children 4fc6cf528a9a
files
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_vcard_muc/mod_vcard_muc.lua	Wed Jun 10 12:21:10 2020 +0200
+++ b/mod_vcard_muc/mod_vcard_muc.lua	Wed Jun 10 22:20:00 2020 +0100
@@ -60,6 +60,10 @@
 	local room_jid = stanza.attr.to;
 	local room_node = jid_split(room_jid);
 	local room = get_room_from_jid(room_jid);
+	if not room then
+		session.send(st.error_reply(stanza, "cancel", "item-not-found"))
+		return true;
+	end
 
 	local from = stanza.attr.from;
 	local from_affiliation = room:get_affiliation(from);