Skip to content
Permalink
Browse files

Add port and TLS info as a separate list item for tcl dcclist

Patch by: Cizzle
  • Loading branch information...
Cizzle authored and vanosg committed Aug 25, 2019
1 parent c41fa13 commit 570364f2154d058f7711c6e3f58a255e5bbebbae
Showing with 3 additions and 3 deletions.
  1. +2 −2 doc/sphinx_source/mainDocs/tcl-commands.rst
  2. +1 −1 src/tcldcc.c
@@ -1575,8 +1575,8 @@ dccused
dcclist [type]
^^^^^^^^^^^^^^

Returns: a list of active connections, each item in the list is a sublist containing six elements:
{<idx> <handle> <hostname> <type> {<other>} <timestamp>}.
Returns: a list of active connections, each item in the list is a sublist containing seven elements:
{<idx> <handle> <hostname> <[+]port> <type> {<other>} <timestamp>}.

The types are: chat, bot, files, file_receiving, file_sending, file_send_pending, script, socket (these are connections that have not yet been put under 'control'), telnet, and server. The timestamp is in unixtime format.

@@ -649,7 +649,7 @@ static int tcl_dcclist STDVAR
{
int i;
char *p, idxstr[10], timestamp[11], other[160];
char portstring[7];
char portstring[7]; /* ssl + portmax + NULL */
long tv;
EGG_CONST char *list[7];

0 comments on commit 570364f

Please sign in to comment.
You can’t perform that action at this time.