removed ghost line bug AGAIN and tested with go1.26.2 (arch btw)

This commit is contained in:
2026-04-28 20:14:33 -04:00
parent eb71ae1c51
commit 552f9ac9c2
+4 -2
View File
@@ -1,7 +1,7 @@
// ============================================================================= // =============================================================================
// Auth: alex // Auth: alex
// File: server.go // File: server.go
// Revn: 01-09-2025 5.0 // Revn: 04-28-2026 6.0
// Func: host MOTD connection // Func: host MOTD connection
// //
// TODO: remove ioutil import // TODO: remove ioutil import
@@ -44,6 +44,8 @@
//*06-14-2024: byte count-based PWFT rewrite //*06-14-2024: byte count-based PWFT rewrite
//*06-17-2024: catch keyboard interrupts with os/signal and syscall //*06-17-2024: catch keyboard interrupts with os/signal and syscall
//*01-09-2025: copied lr/la PWFT updates into r1/r2 //*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 // bugs where a blank item was introduced into qlist and calling
// /la/ would produce a blank line on the client side that didn't // /la/ would produce a blank line on the client side that didn't
// really exist // really exist
//qfile = qfile[:len( qfile ) - 1] qfile = qfile[:len( qfile ) - 1]
// cast bytes to string, split string over newline into array // cast bytes to string, split string over newline into array
qlist = strings.Split( string( qfile ), "\n" ) qlist = strings.Split( string( qfile ), "\n" )
// deal with the trailing // deal with the trailing