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