mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_motd: Remove unused variable [luacheck]
This commit is contained in:
parent
30ab1bca86
commit
ad15946ae3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue