on FILESENT/FILERCVD

 

The on FILESENT and on FILERCVD events trigger when a dcc send or dcc get succeeds.

 

Format:        on <level>:FILESENT:<filename[,filename]>:<commands>

Example:        on 1:FILESENT:*.txt:/msg $nick I have successfully sent you the $filename text file

 

The on SENDFAIL and on GETFAIL events use the same format as above, and trigger when a dcc send or dcc get fails.

 

Examples

 

on 1:FILESENT:*.txt,*.ini:/echo Sent $filename to $nick $address

 

This triggers when a dcc send succeeds in sending a .txt or .ini file to a user. $filename refers to the filename that was transmitted.

 

on 1:FILERCVD:*.txt,*.ini:/echo Received $filename from $nick | /run notepad.exe $filename

 

This triggers when a dcc get succeeds in getting a .txt or .ini file from a user.

 

on 1:SENDFAIL:*.txt:/echo I failed to send the text file $filename to $nick

 

This triggers when a dcc send failed to send a .txt file to a user.

 

on 1:GETFAIL:*.zip:/echo I failed to get the zip file $filename from $nick

 

This triggers when a dcc get failed to get a .zip file from a user.

 

Note: you can use $send(-1) or $get(-1) to refer to the dcc associated with these events.