$filename

From Scriptwiki
Revision as of 15:56, 29 January 2009 by Albie (talk | contribs) (Change of category.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, 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:

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
  }
}