]> jfr.im git - irc/unrealircd/unrealircd-rpc-php.git/blobdiff - lib/Channel.php
Make the *.get/*.add/*.delete calls return the channel/user/.. directly.
[irc/unrealircd/unrealircd-rpc-php.git] / lib / Channel.php
index b0814319317c0a94924a8b1ba399ca32015f6a88..e98e6cd202cdf7c7cdc206d4009acef859d801ce 100644 (file)
@@ -43,7 +43,7 @@ class Channel
         $response = $this->connection->query('channel.get', ['channel' => $channel]);
 
         if (!is_bool($response)) {
-            return $response;
+            return $response->channel;
         }
 
         throw new Exception('Invalid JSON Response from UnrealIRCd RPC.');