s2smanager: Log reason when destroying a session.
[prosody.git] / plugins / mod_motd.lua
index f323e606e50af903220d0fb105d83e415035ccfb..462670e60804a431d5bc2fd4425c5a34651c3103 100644 (file)
@@ -13,6 +13,8 @@ local motd_jid = module:get_option("motd_jid") or host;
 
 local st = require "util.stanza";
 
+motd_text = motd_text:gsub("^%s*(.-)%s*$", "%1"):gsub("\n%s+", "\n"); -- Strip indentation from the config
+
 module:hook("resource-bind",
        function (event)
                local session = event.session;