_Added in 1.9.9_ *$filename* Returns the filename that was transmitted during [[on FILESENT]], [[on FILERCVD]], [[on SENDFAIL]] or [[on GETFAIL]] [[Scripting_Events|event]] or played during a [[on MP3END]], [[on MIDIEND]], [[on WAVEEND]], [[on SONGEND]], [[on PLAYEND]]. It is also available in the [[on CTCP]] event for DCC transfers. *Example*
on *:FILERCVD:*:echo -ag file recieved from $nick was $filename

on *:FILESENT:*:echo -ag file sent to $nick was $filename

on *:MP3END:*:echo -ag last file played was $filename