Mercurial > prosody-modules
changeset 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 |
parents | b10a7082b3c3 |
children | 9b9f35aaeb91 |
files | mod_client_management/mod_client_management.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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)