X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-rpc-php.git/blobdiff_plain/d205fa12516b97b959b7815277bd6b004b13253a..643113c318f56a7d1fb2c9d05dec19c8ae4fd1ab:/lib/Channel.php diff --git a/lib/Channel.php b/lib/Channel.php index 7e7b21a..a3e0b48 100644 --- a/lib/Channel.php +++ b/lib/Channel.php @@ -23,14 +23,8 @@ class Channel implements Contracts\User */ public function get(): stdClass { - $id = random_int(100, 1000); - $response = $this->connection->query('channel.list'); - if($id !== $response->id) { - throw new Exception('Invalid ID. This is not the expected reply.'); - } - if(!is_bool($response)) { return $response; } @@ -47,14 +41,8 @@ class Channel implements Contracts\User */ public function show(array $params): stdClass { - $id = random_int(100, 1000); - $response = $this->connection->query('channel.get', ['channel' => $params['channel']]); - if($id !== $response->id) { - throw new Exception('Invalid ID. This is not the expected reply.'); - } - if (!is_bool($response)) { return $response; }