Software /
code /
prosody-modules
Changeset
6158:73c523248558
mod_anti_spam: Fix generation of error bounce stanzas
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 17 Jan 2025 12:19:55 +0000 |
parents | 6157:ddb0fac151ac |
children | 6159:82a10e21b7f9 |
files | mod_anti_spam/mod_anti_spam.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_anti_spam/mod_anti_spam.lua Fri Jan 17 11:19:05 2025 +0000 +++ b/mod_anti_spam/mod_anti_spam.lua Fri Jan 17 12:19:55 2025 +0000 @@ -50,7 +50,7 @@ if action == "bounce" then module:log("debug", "Bouncing likely spam %s from %s (%s)", event.stanza.name, event.stanza.attr.from, reason); - event.origin.send(st.error_reply("cancel", "policy-violation", reason_messages[reason] or reason_messages.default)); + event.origin.send(st.error_reply(event.stanza, "cancel", "policy-violation", reason_messages[reason] or reason_messages.default)); else module:log("debug", "Discarding likely spam %s from %s (%s)", event.stanza.name, event.stanza.attr.from, reason); end