comparison mod_muc_rai/mod_muc_rai.lua @ 3997:0e72dd70afff

mod_muc_rai: Use correct stanza kind (message) for initial notification
author Matthew Wild <mwild1@gmail.com>
date Tue, 28 Apr 2020 10:03:17 +0100
parents f14c862598a9
children 67047ed63b15
comparison
equal deleted inserted replaced
3996:42682505e692 3997:0e72dd70afff
191 else 191 else
192 return origin.send(st.error_reply(stanza, "wait", "resource-constraint")); 192 return origin.send(st.error_reply(stanza, "wait", "resource-constraint"));
193 end 193 end
194 end 194 end
195 195
196 local reply = st.reply(stanza) 196 local reply = st.message({ to = stanza.attr.from, from = module.host })
197 :tag("rai", { xmlns = xmlns_rai }); 197 :tag("rai", { xmlns = xmlns_rai });
198 for room_jid in pairs(rooms_with_activity) do 198 for room_jid in pairs(rooms_with_activity) do
199 reply:text_tag("activity", room_jid); 199 reply:text_tag("activity", room_jid);
200 end 200 end
201 return origin.send(reply); 201 return origin.send(reply);