Software /
code /
prosody-modules
File
mod_watch_spam_reports/mod_watch_spam_reports.lua @ 4050:1eb2b9483081
mod_adhoc_dataforms_demo: Treat 'execute' action as 'next' except in first step
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 23 Jun 2020 19:54:06 +0200 |
parent | 4046:d518f97dad6f |
child | 4051:91e2e510e17c |
line wrap: on
line source
local st = require "util.stanza"; local admins = module:get_option_inherited_set("admins"); local host = module.host; module:depends("spam_reporting") module:hook("spam_reporting/spam-report", function(event) for admin_jid in admins do module:send(st.message({from=host, type="chat",to=admin_jid}, event.stanza.attr.from.." reported "..event.jid.." as spammer: "..event.reason)); end end)