From 4fb8f3361d5c859c44a71f5873929c474393a13f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 6 Jul 2018 00:16:48 +0200 Subject: mod_announce: Fix luacheck warnings --- plugins/mod_announce.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_announce.lua b/plugins/mod_announce.lua index fc4eea6f..14bb9f3d 100644 --- a/plugins/mod_announce.lua +++ b/plugins/mod_announce.lua @@ -37,7 +37,7 @@ end -- Old -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 @@ local announce_layout = dataforms_new{ { 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" }; -- cgit v1.2.3