# HG changeset patch # User Matthew Wild # Date 1294371970 0 # Node ID 4d0599e8541138e4d9dee9204f916cfa77fea0ed # Parent ce02a56b268f9bf30d2bd47d2a4d60d44824136e mod_motd: Process value to strip any indentation from the config diff -r ce02a56b268f -r 4d0599e85411 plugins/mod_motd.lua --- a/plugins/mod_motd.lua Fri Jan 07 03:17:36 2011 +0000 +++ b/plugins/mod_motd.lua Fri Jan 07 03:46:10 2011 +0000 @@ -13,6 +13,8 @@ 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;