aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-17 01:17:48 +0100
committerKim Alvefur <zash@zash.se>2019-01-17 01:17:48 +0100
commit16d8b60a7b68d373c24e155ebb301cf57c2b680a (patch)
treed8514c52e977f00e10dce1cd91458c0e6b2ecd47
parent06e29c834c2713c13000e3cf11f08ba7df239178 (diff)
parentad15946ae310d40ea8d3d67f59fb6e1d55776276 (diff)
downloadprosody-16d8b60a7b68d373c24e155ebb301cf57c2b680a.tar.gz
prosody-16d8b60a7b68d373c24e155ebb301cf57c2b680a.zip
Merge 0.11->trunk
-rw-r--r--plugins/mod_motd.lua2
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);