Software /
code /
prosody
Changeset
6009:1579b53351e2
mod_motd: Strip indentation only, leave multiple newlines
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 06 Feb 2014 10:44:21 +0100 |
parents | 6006:95ce7bfbfa6f |
children | 6010:fad7084a0b35 6015:8fead005ee60 |
files | plugins/mod_motd.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_motd.lua Mon Jan 27 16:47:54 2014 +0100 +++ b/plugins/mod_motd.lua Thu Feb 06 10:44:21 2014 +0100 @@ -15,7 +15,7 @@ local st = require "util.stanza"; -motd_text = motd_text:gsub("^%s*(.-)%s*$", "%1"):gsub("\n%s+", "\n"); -- Strip indentation from the config +motd_text = motd_text:gsub("^%s*(.-)%s*$", "%1"):gsub("\n[ \t]+", "\n"); -- Strip indentation from the config module:hook("presence/bare", function (event) local session, stanza = event.origin, event.stanza;