aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-17 01:15:29 +0100
committerKim Alvefur <zash@zash.se>2019-01-17 01:15:29 +0100
commit7125a0dd10de331c92c09ea5be8894a6ab79a0e9 (patch)
treef1b5c645406428fd97abcddf53b7c9a190324726
parent9fa98ab579800de8d4d51ccc93765ca6cc4ad47b (diff)
downloadprosody-7125a0dd10de331c92c09ea5be8894a6ab79a0e9.tar.gz
prosody-7125a0dd10de331c92c09ea5be8894a6ab79a0e9.zip
mod_motd: Remove unused variable [luacheck]
-rw-r--r--plugins/mod_motd.lua2
1 files changed, 1 insertions, 1 deletions
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);