Changeset

9791:ca0473cadd1c 0.11

mod_motd: Remove unused variable [luacheck]
author Kim Alvefur <zash@zash.se>
date Thu, 17 Jan 2019 01:15:29 +0100
parents 9789:abd32bc33a9c
children 9792:561b0e20e901 9800:5c5117d41133
files plugins/mod_motd.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);