diff options
author | Kim Alvefur <zash@zash.se> | 2019-01-17 01:17:48 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-01-17 01:17:48 +0100 |
commit | 219bb3baf18acf1bb1b87f13051b7b434a1edece (patch) | |
tree | d8514c52e977f00e10dce1cd91458c0e6b2ecd47 /plugins | |
parent | 7c37b45daa03dfbf3acc44c85ab5d54d025a3187 (diff) | |
parent | 7125a0dd10de331c92c09ea5be8894a6ab79a0e9 (diff) | |
download | prosody-219bb3baf18acf1bb1b87f13051b7b434a1edece.tar.gz prosody-219bb3baf18acf1bb1b87f13051b7b434a1edece.zip |
Merge 0.11->trunk
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_motd.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_motd.lua b/plugins/mod_motd.lua index c68e77a8..47e64be3 100644 --- a/plugins/mod_motd.lua +++ b/plugins/mod_motd.lua @@ -18,7 +18,7 @@ local st = require "util.stanza"; 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); |