User Tools

Site Tools


on_dcc_request

Differences

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:
 +======Synopsis:​======
 +[[on]] [<​modes>​]dcc_request [<​serial#>​] [-|^]<​match>​ { <​action>​ }
 +
 +======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:​$remport]
 +      if (type == '​send'​) {
 +         xecho -b File offered: $fname \($fsize bytes\)
 +      }
 +   }
 +
 +======History:​======
 +
  
on_dcc_request.txt ยท Last modified: 2007/03/02 21:38 (external edit)