aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-06 00:16:48 +0200
committerKim Alvefur <zash@zash.se>2018-07-06 00:16:48 +0200
commit4fb8f3361d5c859c44a71f5873929c474393a13f (patch)
treeaca3d3efadb285196c7e9a0aa3a496ec517fa091
parent134e393f4eb43de0c6dc1a8adc59e6d8e647234c (diff)
downloadprosody-4fb8f3361d5c859c44a71f5873929c474393a13f.tar.gz
prosody-4fb8f3361d5c859c44a71f5873929c474393a13f.zip
mod_announce: Fix luacheck warnings
-rw-r--r--.luacheckrc1
-rw-r--r--plugins/mod_announce.lua4
2 files changed, 2 insertions, 3 deletions
diff --git a/.luacheckrc b/.luacheckrc
index 3e4c3cee..4f762460 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -136,7 +136,6 @@ if os.getenv("PROSODY_STRICT_LINT") ~= "1" then
"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";
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 <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 @@ 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" };