Software /
code /
prosody-modules
Diff
mod_client_management/mod_client_management.lua @ 5304:717ff9468464
mod_client_management: Include client type in XML response listing
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 05 Apr 2023 19:39:53 +0100 |
parent | 5301:8ef197cccd74 |
child | 5305:9b9f35aaeb91 |
line wrap: on
line diff
--- a/mod_client_management/mod_client_management.lua Wed Apr 05 19:38:59 2023 +0100 +++ b/mod_client_management/mod_client_management.lua Wed Apr 05 19:39:53 2023 +0100 @@ -316,7 +316,7 @@ end local connected = client.active and client.active.connected; - reply:tag("client", { id = client.id, connected = connected and "true" or "false" }) + reply:tag("client", { id = client.id, connected = connected and "true" or "false", type = client.type }) :text_tag("first-seen", dt.datetime(client.first_seen)) :text_tag("last-seen", dt.datetime(client.last_seen)) :add_child(auth_type)