" \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:
Ben Peddell 2016-05-28 20:19:06 +10:00
parent 9b714824f5
commit 92923df0eb

View File

@ -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"
} }