]> jfr.im git - irc/unrealircd/unrealircd-rpc-php.git/commitdiff
Remove $id from UnrealIRCd\Channel 2/head
authorDenver F <redacted>
Mon, 4 Jul 2022 18:14:47 +0000 (19:14 +0100)
committerDenver F <redacted>
Mon, 4 Jul 2022 18:14:47 +0000 (19:14 +0100)
lib/Channel.php

index 73c85fd41e213e30ab707cccbda270b3900f48c7..7e7b21a2d115770e57cea620d62e405099de7041 100644 (file)
@@ -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.');