Protocol version 1.2 integrations
[silc.git] / apps / silcd / server_query.c
index cf309e77d5ae392ab939d5fe9f50c2fa32970ede..dd79c597f08a22c8675c8eb12e31b1aea9bd725a 100644 (file)
@@ -1573,6 +1573,8 @@ SilcBuffer silc_server_query_reply_attrs(SilcServer server,
       silc_strncat(service.address, sizeof(service.address),
                   server->server_name, strlen(server->server_name));
       service.status = !(client_entry->mode & SILC_UMODE_DETACHED);
+      if (client_entry->connection)
+       service.idle = time(NULL) - client_entry->data.last_receive;
       buffer = silc_attribute_payload_encode(buffer, attribute,
                                             SILC_ATTRIBUTE_FLAG_VALID,
                                             &service, sizeof(service));