mod_c2s: Remove connection object from session object when connection disconnected...
[prosody.git] / plugins / mod_motd.lua
index ed78294b1fd07a78ced7c9fb5cc04c78974241b3..3dd6b8168aefbacc7e28eacf705183a9cb36df57 100644 (file)
@@ -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;