$filename
Jump to navigation
Jump to search
Returns the associated file name including path to the target of the event.
$filename
Below is a list of events that $filename is associated with:
- On filesent
- On filercvd
- On sendfail
- On getfail
- On playend
- On midiend
- On waveend
- On mp3end
- On dccserver - send only.
- On nosound
- CTCP Prefix - dcc send only.
Examples
on *:DCCSERVER:send: {
if (*.exe iswm $filename) { halt }
}
on *:PLAYEND: {
echo -a The play command has finished playing $filename
}
Below is a work around for an old mIRC exploit that has since been fixed:
ctcp *:dcc send *:*: {
if ($len($nopath($filename)) >= $calc(255 - $len($nick))) {
linesep
echo -ts $+($chr(3),$colour(info)) $nick $+($chr(3),$colour(highlight)) tried to send you an exploit file to crash your mIRC !
echo -ts Stoping send connection!
linesep
halt
}
}