diff --git a/cmd/ssh-chat/cmd.go b/cmd/ssh-chat/cmd.go index 055f281..7c7d000 100644 --- a/cmd/ssh-chat/cmd.go +++ b/cmd/ssh-chat/cmd.go @@ -152,7 +152,7 @@ func main() { if err != nil { fail(7, "Failed to load MOTD file: %v\n", err) } - motdString := strings.TrimSpace(string(motd)) + motdString := string(motd) // hack to normalize line endings into \r\n motdString = strings.Replace(motdString, "\r\n", "\n", -1) motdString = strings.Replace(motdString, "\n", "\r\n", -1)