Merge pull request #56 from Koshatul/master

Removed extra null byte from packing command
pull/61/head
Pavel Djundik 10 years ago
commit 60b7798863

@ -66,7 +66,7 @@
public function Write( $Header, $String = '' )
{
// Pack the packet together
$Command = Pack( 'VV', ++$this->RconRequestId, $Header ) . $String . "\x00\x00\x00";
$Command = Pack( 'VV', ++$this->RconRequestId, $Header ) . $String . "\x00\x00";
// Prepend packet length
$Command = Pack( 'V', StrLen( $Command ) ) . $Command;

Loading…
Cancel
Save