Comparison

mod_vcard_muc/mod_vcard_muc.lua @ 4044:f4999d75d305

Merge
author Matthew Wild <mwild1@gmail.com>
date Wed, 10 Jun 2020 22:20:00 +0100
parent 4043:a533abe6ffd0
child 4300:3f3b672b7616
comparison
equal deleted inserted replaced
4042:78ac5500a844 4044:f4999d75d305
58 local session, stanza = event.origin, event.stanza; 58 local session, stanza = event.origin, event.stanza;
59 59
60 local room_jid = stanza.attr.to; 60 local room_jid = stanza.attr.to;
61 local room_node = jid_split(room_jid); 61 local room_node = jid_split(room_jid);
62 local room = get_room_from_jid(room_jid); 62 local room = get_room_from_jid(room_jid);
63 if not room then
64 session.send(st.error_reply(stanza, "cancel", "item-not-found"))
65 return true;
66 end
63 67
64 local from = stanza.attr.from; 68 local from = stanza.attr.from;
65 local from_affiliation = room:get_affiliation(from); 69 local from_affiliation = room:get_affiliation(from);
66 70
67 if stanza.attr.type == "get" then 71 if stanza.attr.type == "get" then