From: Denver F Date: Mon, 4 Jul 2022 18:14:47 +0000 (+0100) Subject: Remove $id from UnrealIRCd\Channel X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-rpc-php.git/commitdiff_plain/267b314e9529b8d7822963e3d900f56564145fab?hp=80bc309864562f214299304869d1ca143c38b890 Remove $id from UnrealIRCd\Channel --- diff --git a/lib/Channel.php b/lib/Channel.php index 73c85fd..7e7b21a 100644 --- a/lib/Channel.php +++ b/lib/Channel.php @@ -25,7 +25,7 @@ class Channel implements Contracts\User { $id = random_int(100, 1000); - $response = $this->connection->query($id, 'channel.list'); + $response = $this->connection->query('channel.list'); if($id !== $response->id) { throw new Exception('Invalid ID. This is not the expected reply.'); @@ -49,7 +49,7 @@ class Channel implements Contracts\User { $id = random_int(100, 1000); - $response = $this->connection->query($id, 'channel.get', ['channel' => $params['channel']]); + $response = $this->connection->query('channel.get', ['channel' => $params['channel']]); if($id !== $response->id) { throw new Exception('Invalid ID. This is not the expected reply.');