mirror of
https://github.com/MeowLynxSea/pocketmine-rcon.git
synced 2025-07-09 10:54:39 +00:00
Add trimsuffix to remove windows line endings
This commit is contained in:
parent
1634d7630d
commit
8d453096f9
@ -32,6 +32,7 @@ func main() {
|
|||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
input = strings.TrimSuffix(input, "\r\n")
|
||||||
input = strings.Trim(input[:len(input)-1], " ")
|
input = strings.Trim(input[:len(input)-1], " ")
|
||||||
if input == ".exit" {
|
if input == ".exit" {
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user