mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-23 15:08:28 +00:00
" \n " added to empty response message
Server response when a command returns no response is "Server received, But no response!! \n "
This commit is contained in:
parent
9b714824f5
commit
92923df0eb
@ -320,10 +320,10 @@ rconcmd() {
|
|||||||
auth($socket, $password);
|
auth($socket, $password);
|
||||||
sendpkt($socket, 2, 2, $command);
|
sendpkt($socket, 2, 2, $command);
|
||||||
my ($resid, $restype, $rcvbody) = recvpkt($socket);
|
my ($resid, $restype, $rcvbody) = recvpkt($socket);
|
||||||
if ($rcvbody eq "Server received, But no response!!") {
|
if ($rcvbody eq "Server received, But no response!! \n ") {
|
||||||
print "Command processed\n";
|
print "Command processed\n";
|
||||||
} else {
|
} else {
|
||||||
print $rcvbody, "\n";
|
print "\"", $rcvbody, "\"\n";
|
||||||
}
|
}
|
||||||
' "$(getRconPort)" "${ark_MultiHome:-127.0.0.1}" "$adminpass" "$1"
|
' "$(getRconPort)" "${ark_MultiHome:-127.0.0.1}" "$adminpass" "$1"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user