use EqualFold

This commit is contained in:
onyx-and-iris 2024-11-25 19:08:02 +00:00
parent 313d96fffa
commit 51ff562ac4

View File

@ -92,7 +92,7 @@ func interactiveMode(rcon *q3rcon.Rcon, input io.Reader) error {
scanner := bufio.NewScanner(input)
for scanner.Scan() {
cmd := scanner.Text()
if strings.ToUpper(cmd) == "Q" {
if strings.EqualFold(cmd, "Q") {
return nil
}