Project

General

Profile

$filename » History » Version 5

Per Amundsen, 07/11/2019 07:09 PM

1 1 Per Amundsen
_Added in 1.9.9_
2
3
*$filename*
4
5 4 Per Amundsen
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]].
6 1 Per Amundsen
7 5 Per Amundsen
It is also available in the [[on CTCP]] event for DCC transfers.
8
9 1 Per Amundsen
*Example*
10
11
<pre>
12 2 Per Amundsen
on *:FILERCVD:*:echo -ag file recieved from $nick was $filename
13 1 Per Amundsen
14
on *:FILESENT:*:echo -ag file sent to $nick was $filename
15 3 Per Amundsen
16
on *:MP3END:*:echo -ag last file played was $filename
17 1 Per Amundsen
</pre>