Software /
code /
prosody
Diff
plugins/mod_motd.lua @ 6010:fad7084a0b35
Merge 0.9->0.10
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 06 Feb 2014 10:48:41 +0100 |
parent | 5776:bd0ff8ae98a8 |
parent | 6009:1579b53351e2 |
child | 8135:e20c27e04ecc |
line wrap: on
line diff
--- a/plugins/mod_motd.lua Mon Feb 03 07:23:33 2014 +0100 +++ b/plugins/mod_motd.lua Thu Feb 06 10:48:41 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;