From WikiChip
Difference between revisions of "mirc/on events/on filesent"
< mirc‎ | on events

Line 2: Line 2:
 
The '''ON FILESENT''' event triggers whenever a file is sent successfully via {{mIRC|/dcc|/dcc send}}.
 
The '''ON FILESENT''' event triggers whenever a file is sent successfully via {{mIRC|/dcc|/dcc send}}.
  
This event fills {{mIRC|$filename}}, {{mIRC|$address}}, and {{mIRC|$nick}} with the filename, user's address, and the user's nickname (if available), respectively.
 
  
 
== Synopsis ==
 
== Synopsis ==
Line 8: Line 7:
  
 
== Parameters ==
 
== Parameters ==
<span style="display: inline-block; width: 155px;">'''<level>'''</span>The level for the event to trigger.
+
* '''<level>''' - The corresponding {{mIRC|access levels}} for the event to trigger.
  
<span style="display: inline-block; width: 155px;">'''<filename[,filename]>'''</span>The filename(s) that should match the sent file. These can be [[wildcard|wildcards]]. Example: ''*.txt,*.doc,my*.txt''
+
* '''<filename>''' - The filename(s) that should match the received file. Seperate multiple values by commas. These can be {{mIRC|wildcard|wildcards}}. Example: ''*.txt,*.doc,my*.txt''
 +
 
 +
* '''<commands>''' - The commands to be performed when the event listener's criteria is met.
 +
 
 +
== {{mIRC|local identifiers}} ==
 +
 
 +
=== {{mIRC|$filename}} ===
 +
 
 +
Returns the complete filename of the file sent.
  
<span style="display: inline-block; width: 155px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met.
 
  
 
== Example ==
 
== Example ==

Revision as of 18:06, 9 February 2016

Template:mIRC Guide The ON FILESENT event triggers whenever a file is sent successfully via /dcc send.


Synopsis

ON <level>:FILESENT:<filename[,filename]>:<commands>

Parameters

  • <level> - The corresponding access levels for the event to trigger.
  • <filename> - The filename(s) that should match the received file. Seperate multiple values by commas. These can be wildcards. Example: *.txt,*.doc,my*.txt
  • <commands> - The commands to be performed when the event listener's criteria is met.

local identifiers

$filename

Returns the complete filename of the file sent.


Example

Echo the name of the filename sent to the active window, along with the user's nickname and address if available:

ON *:FILESENT:*:echo -a Successfully sent $filename $iif($nick,to $nick - ,to) Address: $address


Compatibility

Added: mIRC v4.5
Added on: 30 Jun 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also