mod_motd: Remove unused variable [luacheck] 0.11
authorKim Alvefur <zash@zash.se>
Thu, 17 Jan 2019 01:15:29 +0100
branch0.11
changeset 9795 ca0473cadd1c
parent 9793 abd32bc33a9c
child 9796 561b0e20e901
child 9804 5c5117d41133
mod_motd: Remove unused variable [luacheck]
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);