Software /
code /
prosody
Diff
plugins/mod_announce.lua @ 8974:71500c68fed4
mod_announce: Fix luacheck warnings
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 06 Jul 2018 00:16:48 +0200 |
parent | 8960:9d0d1e427b82 |
child | 10026:1117138fa372 |
line wrap: on
line diff
--- a/plugins/mod_announce.lua Fri Jul 06 00:16:17 2018 +0200 +++ b/plugins/mod_announce.lua Fri Jul 06 00:16:48 2018 +0200 @@ -37,7 +37,7 @@ -- Old <message>-based jabberd-style announcement sending function handle_announcement(event) - local origin, stanza = event.origin, event.stanza; + local stanza = event.stanza; local node, host, resource = jid.split(stanza.attr.to); if resource ~= "announce/online" then @@ -72,7 +72,7 @@ { name = "announcement", type = "text-multi", required = true, label = "Announcement" }; }; -function announce_handler(self, data, state) +function announce_handler(_, data, state) if state then if data.action == "cancel" then return { status = "canceled" };