on_dcc_request
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | on_dcc_request [2007/03/02 21:38] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ======Synopsis: | ||
| + | [[on]] [< | ||
| + | |||
| + | ======Description: | ||
| + | This hook is triggered whenever the client receives a DCC request of some | ||
| + | sort (currently [[dcc CHAT|CHAT]] or [[dcc SEND|SEND]]). | ||
| + | |||
| + | ======Parameters: | ||
| + | |$0 |nickname of remote client| | ||
| + | |$1 |type of [[DCC]] connection| | ||
| + | |$2 |description of dcc connection (currently same as $1)| | ||
| + | |$3 |ip address of remote client| | ||
| + | |$4 |port on the ip address the client is connected to| | ||
| + | |$5 |file name (SEND only)| | ||
| + | |$6 |file size (SEND only)| | ||
| + | |||
| + | ======Default Action: | ||
| + | If you don't suppress this event, the client will display a message to your | ||
| + | screen. | ||
| + | |||
| + | ======Examples: | ||
| + | To customize the dcc request message: | ||
| + | on ^dcc_request * (nick, type, desc, remaddr, remport, fname, fsize) { | ||
| + | xecho -b DCC $type requested by $nick!$userhost() [$remaddr: | ||
| + | if (type == ' | ||
| + | xecho -b File offered: $fname \($fsize bytes\) | ||
| + | } | ||
| + | } | ||
| + | |||
| + | ======History: | ||
| + | |||
on_dcc_request.txt · Last modified: 2007/03/02 21:38 by 127.0.0.1
