Software /
code /
prosody-modules
Diff
mod_muc_rai/mod_muc_rai.lua @ 4074:4b84beb48ba0
mod_muc_rai: Ignore presence to host that doesn't contain the <rai/> element
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 19 Aug 2020 15:14:00 +0100 |
parent | 4060:b44620cacb11 |
child | 4277:10dc4527574f |
line wrap: on
line diff
--- a/mod_muc_rai/mod_muc_rai.lua Tue Aug 18 18:56:47 2020 +0200 +++ b/mod_muc_rai/mod_muc_rai.lua Wed Aug 19 15:14:00 2020 +0100 @@ -195,6 +195,10 @@ return true; end + if not stanza:get_child("rai", xmlns_rai) then + return; -- Ignore, no <rai/> tag + end + local rooms_with_activity, err = subscribe_all_rooms(user_jid); if not rooms_with_activity then