# HG changeset patch # User Kim Alvefur # Date 1547684129 -3600 # Node ID ca0473cadd1c110daaecf726c4c98590c5187bd4 # Parent abd32bc33a9c3ed109f20e5e5be138348a53e489 mod_motd: Remove unused variable [luacheck] diff -r abd32bc33a9c -r ca0473cadd1c plugins/mod_motd.lua --- a/plugins/mod_motd.lua Thu Jan 17 01:05:47 2019 +0100 +++ b/plugins/mod_motd.lua Thu Jan 17 01:15:29 2019 +0100 @@ -18,7 +18,7 @@ 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);