X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmod_motd.lua;h=574a9cf408e6fe883c801ae65d6a35d5e3485e1b;hb=6c91101e5d303ba822d4f8b3c7a1e3ff3fb32376;hp=1e2ee395af1c98d6282759d85a638c6103b5906c;hpb=d1895b8557764bbbec945dc2e7dd1dff6764f85b;p=prosody.git diff --git a/plugins/mod_motd.lua b/plugins/mod_motd.lua index 1e2ee395..574a9cf4 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;