# HG changeset patch # User Kim Alvefur # Date 1547684268 -3600 # Node ID 561b0e20e90167a2b6d0d941b12269129830a83d # Parent 4a419089ad00c6e86e267433ce76a0a95b7760b7# Parent ca0473cadd1c110daaecf726c4c98590c5187bd4 Merge 0.11->trunk diff -r 4a419089ad00 -r 561b0e20e901 plugins/mod_motd.lua --- 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);