mirror of
https://github.com/xPaw/PHP-Source-Query.git
synced 2026-06-28 05:53:15 +02:00
Use challenge straight away if available
This commit is contained in:
@@ -200,7 +200,15 @@
|
|||||||
throw new SocketException( 'Not connected.', SocketException::NOT_CONNECTED );
|
throw new SocketException( 'Not connected.', SocketException::NOT_CONNECTED );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( $this->Challenge )
|
||||||
|
{
|
||||||
|
$this->Socket->Write( self::A2S_INFO, "Source Engine Query\0" . $this->Challenge );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
$this->Socket->Write( self::A2S_INFO, "Source Engine Query\0" );
|
$this->Socket->Write( self::A2S_INFO, "Source Engine Query\0" );
|
||||||
|
}
|
||||||
|
|
||||||
$Buffer = $this->Socket->Read( );
|
$Buffer = $this->Socket->Read( );
|
||||||
$Type = $Buffer->GetByte( );
|
$Type = $Buffer->GetByte( );
|
||||||
$Server = [];
|
$Server = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user