]> jfr.im git - irc/unrealircd/unrealircd-rpc-php.git/commit - lib/User.php
User: add optional $object_detail_level argument to getAll() and get().
authorBram Matthys <redacted>
Mon, 27 Mar 2023 11:31:11 +0000 (13:31 +0200)
committerBram Matthys <redacted>
Mon, 27 Mar 2023 11:36:49 +0000 (13:36 +0200)
commit249f865d50d543087288a4fae426a444fd39ec24
tree8d4f8089a58ea97fd20409b03f2e13f7fb0ef45d
parent1446a5db1b55608472c42aea7c5dc0a4c66558f1
User: add optional $object_detail_level argument to getAll() and get().
Similar to Channel getAll() and get() this specifies the amount of
detail that a server will return, see "Structure of a client object"
at https://www.unrealircd.org/docs/JSON-RPC:User

Only works in UnrealIRCd 6.0.8 or later, simply ignored in earlier versions.

If you only need a minimal amount of information, consider using a
lower object_detail_level. It saves both CPU and bandwidth.

In UnrealIRCd 6.0.8+ the user.get call returns the same information with
the default object_detail_level as in 6.0.7.

For the user.list call, UnrealIRCd 6.0.8 has a "breaking change":
the "channels" of the user are no longer returned with the default
object_detail_level value of 2. If you require that information, then
set object_detail_level to 4, like: $rpc->user()->getAll(4);
lib/User.php