mirror of
https://github.com/pissnet/pissircd.git
synced 2025-08-12 21:21:37 +01:00
Add to JSON logging output, for users: "idle_since".
Suggested by westor in https://bugs.unrealircd.org/view.php?id=6083 For technical reasons this field is only available for local users.
This commit is contained in:
parent
af8418fb3e
commit
7280ffdc57
1 changed files with 3 additions and 0 deletions
|
@ -564,6 +564,9 @@ void json_expand_client(json_t *j, const char *key, Client *client, int detail)
|
|||
if (client->local && client->local->creationtime)
|
||||
json_object_set_new(child, "connected_since", json_timestamp(client->local->creationtime));
|
||||
|
||||
if (client->local && client->local->idle_since)
|
||||
json_object_set_new(child, "idle_since", json_timestamp(client->local->idle_since));
|
||||
|
||||
if (client->user)
|
||||
{
|
||||
char buf[512];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue