Project

General

Profile

$get » History » Version 1

Per Amundsen, 03/22/2016 07:46 AM

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