User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

on_dcc_request [2007/03/02 21:38] (current)
Line 1: Line 1:
 +[[on]] [<​modes>​]dcc_request [<​serial#>​] [-|^]<​match>​ { <​action>​ }
 +This hook is triggered whenever the client receives a DCC request of some
 +sort (currently [[dcc CHAT|CHAT]] or [[dcc SEND|SEND]]).
 +|$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
 +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\)
 +      }
 +   }
on_dcc_request.txt ยท Last modified: 2007/03/02 21:38 (external edit)