summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/RPC/rpc_data.md2
-rw-r--r--modules/rpc/rpc_data.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/docs/RPC/rpc_data.md b/docs/RPC/rpc_data.md
index 03bc9fa0b..aa31fdd6d 100644
--- a/docs/RPC/rpc_data.md
+++ b/docs/RPC/rpc_data.md
@@ -425,6 +425,7 @@ nickchanged | int | The time at which the user last changed thei
real | string | The real name of the user.
server | string | The server that the user is connected to.
signon | int | The time at which the user connected to the network.
+tls | bool | Whether the user is connected using TLS (SSL).
uid | string or null | The unique immutable identifier of the user or null if the IRCd does not use UIDs.
vhost | string or null | The virtual host of the user or null if they have no vhost.
vident | string or null | The virtual ident (username) of the user or null if they have no vident.
@@ -451,6 +452,7 @@ vident | string or null | The virtual ident (username) of the user or
"real": "An IRC User",
"server": "irc.example.com",
"signon": 1740408296,
+ "tls": true,
"vhost": "staff.example.com",
"vident": null,
}
diff --git a/modules/rpc/rpc_data.cpp b/modules/rpc/rpc_data.cpp
index bfc1fa565..1e8f990b0 100644
--- a/modules/rpc/rpc_data.cpp
+++ b/modules/rpc/rpc_data.cpp
@@ -489,7 +489,8 @@ public:
.Reply("nickchanged", u->timestamp)
.Reply("real", u->realname)
.Reply("server", u->server->GetName())
- .Reply("signon", u->signon);
+ .Reply("signon", u->signon)
+ .Reply("tls", u->IsSecurelyConnected());
if (u->IsIdentified())
{