Changeset

9792:561b0e20e901

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Thu, 17 Jan 2019 01:17:48 +0100
parents 9790:4a419089ad00 (current diff) 9791:ca0473cadd1c (diff)
children 9793:9993fd021d19
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_motd.lua	Thu Jan 17 01:09:38 2019 +0100
+++ b/plugins/mod_motd.lua	Thu Jan 17 01:17:48 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);