Changeset

3401:8412592f3011

mod_motd_sequential: Fix typo (fixes unintentional global access)
author Kim Alvefur <zash@zash.se>
date Tue, 11 Dec 2018 18:27:08 +0100
parents 3400:272908ea99c9
children 3402:6a3060d5e85d
files mod_motd_sequential/mod_motd_sequential.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_motd_sequential/mod_motd_sequential.lua	Tue Dec 11 18:26:31 2018 +0100
+++ b/mod_motd_sequential/mod_motd_sequential.lua	Tue Dec 11 18:27:08 2018 +0100
@@ -27,7 +27,7 @@
             local session = event.session;
     local alreadyseen_list = datamanager.load(session.username, session.host, "motd_sequential_seen") or { max = 0 };
     local alreadyseen = alreadyseen_list["max"] + 1;
-    local mod_stanza;
+    local motd_stanza;
     for i = alreadyseen, max do
             motd_stanza =
                     st.message({ to = session.username..'@'..session.host, from = motd_jid },