X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmod_motd.lua;h=574a9cf408e6fe883c801ae65d6a35d5e3485e1b;hb=3ecbfc413e730a322e07dbb596362e511652fd33;hp=1e2ee395af1c98d6282759d85a638c6103b5906c;hpb=1b01b4fe53c7e81fc6911a63031713166f0917bf;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;