From 2ed4491c17a4b359fa1d3d32119c2cf3593a31cb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 13 Oct 2021 12:53:43 +0200 Subject: [PATCH] Don't strip spaces at start of MOTD This breaks ASCII art. Instead, just drop the final newline if any. --- cmd/soju/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/soju/main.go b/cmd/soju/main.go index 950974d..f092a36 100644 --- a/cmd/soju/main.go +++ b/cmd/soju/main.go @@ -46,7 +46,7 @@ func loadMOTD(srv *soju.Server, filename string) error { if err != nil { return err } - srv.SetMOTD(strings.TrimSpace(string(b))) + srv.SetMOTD(strings.TrimSuffix(string(b), "\n")) return nil }