]> jfr.im git - irc/unrealircd/unrealircd-rpc-php.git/blobdiff - lib/Channel.php
Use the correct parameter for gline expiry timestamp
[irc/unrealircd/unrealircd-rpc-php.git] / lib / Channel.php
index 7e7b21a2d115770e57cea620d62e405099de7041..a3e0b4880070a9411f2ddd14de57dc9e7782b2fa 100644 (file)
@@ -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;
         }