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