JSON-RPC:Whowas

The  JSON RPC calls retrieve whowas history of users.

Requires UnrealIRCd 6.1.0 or later.

= Structure of a whowas object = A "Whowas object" is used in responses.

= API Calls =

whowas.get
Get WHOWAS history of a user. 6.1.0+

Request arguments
Optional arguments:
 * nick: the nick name to search for
 * ip: the IP address to search for
 * object_detail_level: set the detail of the response object, this is similar to the Detail level column in Structure of a client object. In this RPC call it defaults to 2 if this parameter is not specified.

Result
A list of matches (which can be 0, 1 or more). The list of matches contains something similar to a client object, but is not identical, because many client fields are not present in whowas history. It also has the extra field logoff_time which indicates when the user went offline (for whatever reason).

Example
{"jsonrpc": "2.0", "method": "whowas.get", "params": {"nick":"ABCD"}, "id": 123}