From e96807bb24a34f1f6f9734d9d1a4049205e382cd Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sat, 5 Dec 2020 12:31:51 +0200 Subject: [PATCH] Correct const for request value (it is still same value) --- SourceQuery/SourceQuery.php | 1 + SourceQuery/SourceRcon.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/SourceQuery/SourceQuery.php b/SourceQuery/SourceQuery.php index a29d7f3..339a043 100644 --- a/SourceQuery/SourceQuery.php +++ b/SourceQuery/SourceQuery.php @@ -58,6 +58,7 @@ /** * Source rcon sent */ + const SERVERDATA_REQUESTVALUE = 0; const SERVERDATA_EXECCOMMAND = 2; const SERVERDATA_AUTH = 3; diff --git a/SourceQuery/SourceRcon.php b/SourceQuery/SourceRcon.php index 06a2e51..0a77d58 100644 --- a/SourceQuery/SourceRcon.php +++ b/SourceQuery/SourceRcon.php @@ -145,7 +145,7 @@ // See https://developer.valvesoftware.com/wiki/Source_RCON_Protocol#Multiple-packet_Responses if( StrLen( $Data ) >= 4000 ) { - $this->Write( SourceQuery::SERVERDATA_RESPONSE_VALUE ); + $this->Write( SourceQuery::SERVERDATA_REQUESTVALUE ); do {