From fc632a3a78bdc638b421f86369f5e38f6e8a82ed Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 17 Jan 2019 01:15:29 +0100 Subject: mod_motd: Remove unused variable [luacheck] --- plugins/mod_motd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_motd.lua b/plugins/mod_motd.lua index c68e77a8..47e64be3 100644 --- a/plugins/mod_motd.lua +++ b/plugins/mod_motd.lua @@ -18,7 +18,7 @@ local st = require "util.stanza"; motd_text = motd_text:gsub("^%s*(.-)%s*$", "%1"):gsub("\n[ \t]+", "\n"); -- Strip indentation from the config module:hook("presence/initial", function (event) - local session, stanza = event.origin, event.stanza; + local session = event.origin; local motd_stanza = st.message({ to = session.full_jid, from = motd_jid }) :tag("body"):text(motd_text); -- cgit v1.2.3