Skip to content

Commit e96807b

Browse files
committed
Correct const for request value (it is still same value)
1 parent 7f2e448 commit e96807b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

SourceQuery/SourceQuery.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class SourceQuery
5858
/**
5959
* Source rcon sent
6060
*/
61+
const SERVERDATA_REQUESTVALUE = 0;
6162
const SERVERDATA_EXECCOMMAND = 2;
6263
const SERVERDATA_AUTH = 3;
6364

SourceQuery/SourceRcon.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function Command( string $Command ) : string
145145
// See https://developer.valvesoftware.com/wiki/Source_RCON_Protocol#Multiple-packet_Responses
146146
if( StrLen( $Data ) >= 4000 )
147147
{
148-
$this->Write( SourceQuery::SERVERDATA_RESPONSE_VALUE );
148+
$this->Write( SourceQuery::SERVERDATA_REQUESTVALUE );
149149

150150
do
151151
{

0 commit comments

Comments
 (0)