$send » History » Version 5
Per Amundsen, 02/23/2023 07:38 PM
1 | 1 | Per Amundsen | _Added in 2.3_ |
---|---|---|---|
2 | |||
3 | *$send(N/nick,[N])* |
||
4 | |||
5 | Returns the nickname and filename of the Nth dcc send connection. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | 5 | Per Amundsen | table(ktable). |
10 | |*Parameter*|*Description*| |
||
11 | | N/nick | Nick or the Nth connection. | |
||
12 | | [N] | The Nth nick match. | |
||
13 | 1 | Per Amundsen | |
14 | *Properties* |
||
15 | |||
16 | 5 | Per Amundsen | table(ktable). |
17 | |*Property*|*Description*| |
||
18 | | .lra | *TODO* | |
||
19 | | .wid | *TODO* | |
||
20 | | | hwnd - *TODO* | |
||
21 | | .cid | Returns the connection id. | |
||
22 | | .path | Returns the file path. | |
||
23 | | .file | Returns the file name. | |
||
24 | | .size | Returns the file size in bytes. | |
||
25 | | .sent | Returns the number of bytes sent. | |
||
26 | | .pc | Returns the percent complete. | |
||
27 | | .secs | Returns number of seconds the transfer has been open. | |
||
28 | | .done | Returns [[$true]] if transfer was successful, otherwise [[$false]]. | |
||
29 | | .resume | Returns resume position if file was resumed. | |
||
30 | | .cps | Returns a estimate bytes per second. | |
||
31 | | .status | Returns "sent" and "failed" if a transfer has been sent successfully or failed. | |
||
32 | | .ip | Returns the local ip address. | |
||
33 | | .port | Returns the local port. *(AdiIRC only)* | |
||
34 | 1 | Per Amundsen | |
35 | *Example* |
||
36 | |||
37 | <pre> |
||
38 | 3 | Per Amundsen | ; Print number of SEND transfers. |
39 | //echo -ag $send(0) |
||
40 | 1 | Per Amundsen | |
41 | 3 | Per Amundsen | ; Print filename for the first SEND transfer. |
42 | //echo -ag $send(1).file |
||
43 | 1 | Per Amundsen | </pre> |