on_dcc_list
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | on_dcc_list [2011/10/31 20:07] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ======Synopsis: | ||
| + | [[on]] [< | ||
| + | |||
| + | ======Summary: | ||
| + | Triggered by each line when you do [[dcc list]]. | ||
| + | see what dccs are open. | ||
| + | |||
| + | ======Description: | ||
| + | This hook is triggered whenever a /[[dcc]] or /[[dcc list|dcc list]] command is issued. | ||
| + | The ' | ||
| + | end of the list is determined when $0 is " | ||
| + | |||
| + | ======Parameters: | ||
| + | |$0 |The type of [[DCC]] connection | | ||
| + | |$1 |" | ||
| + | |$2 |Nickname of the peer | | ||
| + | |$3 |Status of connection | | ||
| + | |$4 |$[[time function|time]]() when connection established, | ||
| + | |$5 |Size of the file transfer, 0 if not applicable | | ||
| + | |$6 |Number of bytes transfered, 0 if not connected | | ||
| + | |$7 |Description field (usually the full filename) | | ||
| + | |||
| + | ======Default Action: | ||
| + | If you don't suppress this event, the client will display the dcc list | ||
| + | item to your screen. | ||
| + | |||
| + | ======Examples: | ||
| + | To display some extra info about dcc: | ||
| + | on -dcc_list * (type, encrypted, peer, status, est, size, numbytes, desc) { | ||
| + | if (numbytes / size > 0.9) { | ||
| + | echo File $desc from $nick is almost done! | ||
| + | }; | ||
| + | }; | ||
| + | dcc list; | ||
| + | |||
| + | ======History: | ||
| + | |||
on_dcc_list.txt · Last modified: 2011/10/31 20:07 by 127.0.0.1
