Compare commits

..

No commits in common. "main" and "v1.0.7" have entirely different histories.
main ... v1.0.7

1 changed files with 2 additions and 2 deletions

View File

@ -165,9 +165,9 @@ func sendName(conn net.Conn) {
if err != nil { if err != nil {
log.Fatalf("Error occurred sending message to server: %v\n", err) log.Fatalf("Error occurred sending message to server: %v\n", err)
} }
Profile.Username = strings.TrimRight(message, "\n\r") Profile.Username = strings.TrimRight(message, "\n")
if _, err := conn.Write([]byte(Profile.Username + "\n")); err != nil { if _, err := conn.Write([]byte(message)); err != nil {
log.Fatalf("Error occurred writing to server: %v\n", err) log.Fatalf("Error occurred writing to server: %v\n", err)
} }
} }