aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit60f44b1556688b5855083083f926f7a0cc25fdea (patch)
treeaca3d3efadb285196c7e9a0aa3a496ec517fa091 /plugins
parentf03ef26e4b54f370d9efb8c45b35b6edbce078fb (diff)
downloadprosody-60f44b1556688b5855083083f926f7a0cc25fdea.tar.gz
prosody-60f44b1556688b5855083083f926f7a0cc25fdea.zip
mod_announce: Fix luacheck warnings
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_announce.lua4
1 files changed, 2 insertions, 2 deletions
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" };