1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-05-18 14:33:34 +02:00

Minor cosmetic changes, throw an error when rcon read fails (#42)

This commit is contained in:
xPaw
2015-02-17 13:42:23 +02:00
parent 3bae84ca68
commit 50729990c6
5 changed files with 76 additions and 69 deletions
+4 -4
View File
@@ -71,13 +71,13 @@
$Buffer = $this->Buffer->Get( );
$Trimmed = Trim( $Buffer );
if($Trimmed === 'Bad rcon_password.')
if( $Trimmed === 'Bad rcon_password.' )
{
throw new AuthenticationException($Trimmed, AuthenticationException::BAD_PASSWORD);
throw new AuthenticationException( $Trimmed, AuthenticationException::BAD_PASSWORD );
}
else if($Trimmed === 'You have been banned from this server.')
else if( $Trimmed === 'You have been banned from this server.' )
{
throw new AuthenticationException($Trimmed, AuthenticationException::BANNED);
throw new AuthenticationException( $Trimmed, AuthenticationException::BANNED );
}
$ReadMore = false;