aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_motd.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-02-06 10:44:21 +0100
committerKim Alvefur <zash@zash.se>2014-02-06 10:44:21 +0100
commit9a9dd21edf4c6ad318fcd31c0fe740cf1b7dba81 (patch)
tree9b20c61e4045a49607e0a80080a56d0aa66e0241 /plugins/mod_motd.lua
parent90e627327f0d5f37cc8d901018480f16b54b1dd8 (diff)
downloadprosody-9a9dd21edf4c6ad318fcd31c0fe740cf1b7dba81.tar.gz
prosody-9a9dd21edf4c6ad318fcd31c0fe740cf1b7dba81.zip
mod_motd: Strip indentation only, leave multiple newlines
Diffstat (limited to 'plugins/mod_motd.lua')
-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 ed78294b..3dd6b816 100644
--- a/plugins/mod_motd.lua
+++ b/plugins/mod_motd.lua
@@ -15,7 +15,7 @@ if not motd_text then return; end
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;