Mercurial > prosody-modules
diff mod_muc_rtbl/mod_muc_rtbl.lua @ 5890:ba71fdc8ea73
mod_muc_rtbl: Fix blocking of PMs from RTBL matches
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 23 Apr 2024 12:10:38 +0100 |
| parents | f6577cdb1d91 |
| children | 6e2458b69e33 |
line wrap: on
line diff
--- a/mod_muc_rtbl/mod_muc_rtbl.lua Wed Apr 17 16:48:22 2024 +0100 +++ b/mod_muc_rtbl/mod_muc_rtbl.lua Tue Apr 23 12:10:38 2024 +0100 @@ -164,7 +164,7 @@ module:log("debug", "Blocked private message from user <%s> from room <%s> due to RTBL match", occupant.bare_jid, event.stanza.attr.to); local error_reply = st.error_reply(event.stanza, "cancel", "forbidden", "You are banned from this service", event.room.jid); event.origin.send(error_reply); - return true; + return false; -- Don't route it end end);
