From 552f9ac9c240c91e5a12af2e687b42474bbf0980 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 28 Apr 2026 20:14:33 -0400 Subject: [PATCH] removed ghost line bug AGAIN and tested with go1.26.2 (arch btw) --- server.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index 27a04b5..054def2 100644 --- a/server.go +++ b/server.go @@ -1,7 +1,7 @@ // ============================================================================= // Auth: alex // File: server.go -// Revn: 01-09-2025 5.0 +// Revn: 04-28-2026 6.0 // Func: host MOTD connection // // TODO: remove ioutil import @@ -44,6 +44,8 @@ //*06-14-2024: byte count-based PWFT rewrite //*06-17-2024: catch keyboard interrupts with os/signal and syscall //*01-09-2025: copied lr/la PWFT updates into r1/r2 +//*04-28-2026: removed implicit newline at end of qfile to stop ghost +// line bug in /la/ AGAIN // // ============================================================================= @@ -114,7 +116,7 @@ func fread() string { // bugs where a blank item was introduced into qlist and calling // /la/ would produce a blank line on the client side that didn't // really exist - //qfile = qfile[:len( qfile ) - 1] + qfile = qfile[:len( qfile ) - 1] // cast bytes to string, split string over newline into array qlist = strings.Split( string( qfile ), "\n" ) // deal with the trailing