Software /
code /
prosody
Changeset
8974:71500c68fed4
mod_announce: Fix luacheck warnings
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 06 Jul 2018 00:16:48 +0200 |
parents | 8973:188c05e906f1 |
children | 8975:47dd2e850781 |
files | .luacheckrc plugins/mod_announce.lua |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/.luacheckrc Fri Jul 06 00:16:17 2018 +0200 +++ b/.luacheckrc Fri Jul 06 00:16:48 2018 +0200 @@ -136,7 +136,6 @@ "plugins/mod_admin_adhoc.lua"; "plugins/mod_admin_telnet.lua"; - "plugins/mod_announce.lua"; "plugins/mod_bosh.lua"; "plugins/mod_groups.lua"; "plugins/mod_http_files.lua";
--- 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" };