Revert "Fix query-json command missing quotation marks"

This reverts commit f3ddb10637.

Woops I didn't mean to push it directly, sorry
This commit is contained in:
Roflicide 2017-03-21 21:11:07 -04:00
parent f3ddb10637
commit 0ffa8a4808

2
msctl
View File

@ -1616,7 +1616,7 @@ queryDetailedStatusJSON() {
if [ -n "$STATUS" ]; then
NUMPLAYERS=$(printf "%s" "$STATUS" | cut -f 19)
if [ $NUMPLAYERS -gt 0 ]; then
PLAYERS=$(printf "%s\"" "$PLAYERS" $(printf "%s" "$STATUS" | cut -f $((30))))
PLAYERS=$(printf "\"%s\"" "$STATUS" | cut -f 30)
COUNTER=1
while [ $COUNTER -lt $NUMPLAYERS ]; do
PLAYERS=$(printf "%s, \"%s\"" "$PLAYERS" $(printf "%s" "$STATUS" | cut -f $((30+$COUNTER))))