Project

General

Profile

$get » History » Revision 3

Revision 2 (Per Amundsen, 03/22/2016 07:47 AM) → Revision 3/6 (Per Amundsen, 03/22/2016 07:48 AM)

_Added in 2.3_ 

 *$get(N/nick,[N])* 

 Returns the nickname and filename of the Nth dcc get connection. 

 *Parameters* 

 N/nick - Nick or the Nth connection. 
 [N] - The Nth nick match. 

 *Properties* 

 .wid - TODO 
 -hwnd - TODO 
 .cid - Returns the connection id. 
 .path - Returns the file path. 
 .file - Returns the file name. 
 .rcvd - Returns the number of bytes    received. 
 .pc - Returns the percent complete. 
 .secs - Returns number of seconds the transfer has been open. 
 .done - Returns [[$true]] if transfer was successful, otherwise [[$false]]. 
 .resume - Returns resume position if file was resumed. 
 .cps - Returns a estimate bytes per second. 
 .status - Returns "sent" and "failed" if a transfer has been sent successfully or failed. 
 .ip - Returns the remote ip address. 
 .port - Returns the remote port. (AdiIRC only) 

 *Example* 

 <pre> 
 ; Print number of GET transfers. 
 //echo -ag $get(0) 

 ; Print filename for the first GET transfer. 
 //echo -ag $get(1).file 
 </pre>