on [<modes>]dcc_connect [<serial#>] [-|^]<match> { <action> }
This hook is triggered whenever the client successfully establishes a DCC connection with another client. Currently, this is either a CHAT or a SEND connection.
If you don't suppress this event, the client will display a message to your screen.
To customize the connection message:
on ^dcc_connect * (nick, type, addr, port, fname, fsize) { xecho -b DCC $type connection with $(nick)[$addr:$port] established; if (type == 'send') { xecho -b Transferring $fname \($fsize bytes\); }; };
Note that establishing a DCC connection does not involve the irc network. Thus, the $userhost() function will not work inside this hook.
For a DCC SEND connection, this will be hooked twice. Once with $1 being SEND, and again being GET. This is for compatibility with bitchx.