# HG changeset patch # User Matthew Wild # Date 1591824000 -3600 # Node ID f4999d75d3057d05c7cdc8db4734b01034e39995 # Parent 78ac5500a844a254ae485795c0beab07d6585291# Parent a533abe6ffd025f2c645ac593d483f6759905b4b Merge diff -r 78ac5500a844 -r f4999d75d305 mod_vcard_muc/mod_vcard_muc.lua --- 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);