Table of Contents

Synopsis:

on [<modes>]dcc_request [<serial#>] [-|^]<match> { <action> }

Description:

This hook is triggered whenever the client receives a DCC request of some sort (currently CHAT or 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:$remport]
    if (type == 'send') {
       xecho -b File offered: $fname \($fsize bytes\)
    }
 }

History: