From WikiChip
Editing mirc/on events/on dccserver

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 1: Line 1:
{{mirc title|On Dccserver - Events}}
 
 
The '''ON DCCSERVER''' event triggers a connection attempt is made on mIRC's DCC Server. This event allows easy monitoring of connections and the ability to prevent someone from connecting to mIRC by invoking the {{mIRC|/halt}} command.
 
The '''ON DCCSERVER''' event triggers a connection attempt is made on mIRC's DCC Server. This event allows easy monitoring of connections and the ability to prevent someone from connecting to mIRC by invoking the {{mIRC|/halt}} command.
  
Line 8: Line 7:
  
 
== Parameters ==
 
== Parameters ==
* '''<level>''' - The corresponding {{mIRC|access levels}} for the event to trigger.s
+
<span style="display: inline-block; width: 145px;">'''<level>'''</span>The level for the event to trigger.
  
* '''<Chat|Send|Fserve>''' - The text that to be matched. Can also be a {{mIRC|wildcard}}.
+
<span style="display: inline-block; width: 145px;">'''<Chat|Send|Fserve>'''</span>The text that to be matched. Can also be a [[wildcard]].
  
** '''Chat''' - Triggers if the event is caused by a DCCSERVER Chat.
+
<div style="background-color: rgba(0,0,0,.03); display: block;"><span style="display: inline-block; margin-left: 145px; width: 65px;">'''Chat'''</span>Triggers if the event is caused by a DCCSERVER Chat.</div>
** '''Send''' - Triggers if the event is caused by a DCCSERVER Send.
+
 
** '''Fserve''' - Triggers if the event is caused by a DCCSERVER Fserve.
+
<div style="background-color: rgba(0,0,0,.06); display: block;"><span style="display: inline-block; margin-left: 145px; width: 65px;">'''Send'''</span>Triggers if the event is caused by a DCCSERVER Send.</div>
* '''<commands>''' - The commands to be performed when the event listener's criteria is met.
+
 
 +
<div style="background-color: rgba(0,0,0,.03); display: block;"><span style="display: inline-block; margin-left: 145px; width: 65px;">'''Fserve'''</span>Triggers if the event is caused by a DCCSERVER Fserve.</div>
 +
 
 +
<span style="display: inline-block; width: 145px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met.
  
 
== Examples ==
 
== Examples ==
Echo to the active screen some information when a {{mIRC|/dcc|dcc send}} is being received:
+
Echo to the active screen some information when a [[Dcc send - mIRC|DCC Send]] is being received:
 
<source lang="mIRC">ON *:DCCSERVER:Send:echo User $nick ( $+ $address $+ ) is attempting to send: $filename</source>
 
<source lang="mIRC">ON *:DCCSERVER:Send:echo User $nick ( $+ $address $+ ) is attempting to send: $filename</source>
  
The '''ON DCCSERVER''' event can also prevent certain events from happening, based on a certain criteria. For instance, the following event will decline a {{mIRC|/dcc|dcc send}} if the file extension is [[.exe file type - Windows|.exe]]:
+
The '''ON DCCSERVER''' event can also prevent certain events from happening, based on a certain criteria. For instance, the following event will decline a [[Dcc send - mIRC|DCC Send]] if the file extension is [[.exe file type - Windows|.exe]]:
 
<source lang="mIRC">ON *:DCCSERVER:Send:if ($right($filename,4) == .exe) { echo -a User $nick just tried to send a file with an .exe extension. It has been declined. | halt }</source>
 
<source lang="mIRC">ON *:DCCSERVER:Send:if ($right($filename,4) == .exe) { echo -a User $nick just tried to send a file with an .exe extension. It has been declined. | halt }</source>
  
The use of the {{mIRC|/halt}} command in this instance prevents any further action, even from any confirmation windows from popping up. /halt can also be used on the other '''ON DCCSERVER''' events to prevent anything from happening.
+
The use of the [[/halt command - mIRC|halt command]] in this instance prevents any further action, even from any confirmation windows from popping up. The [[/halt command - mIRC|halt command]] can also be used on the other '''ON DCCSERVER''' events to prevent anything from happening.
  
Echo when a user attempts to initiate a {{mIRC|/dcc|DCC Chat}}:
+
Echo when a user attempts to initiate a [[Dcc chat - mIRC|DCC Chat]]:
 
<source lang="mIRC">ON *:DCCSERVER:Chat:echo User $nick ( $+ $address $+ ) is attempting to initiate a DCC Chat.</source>
 
<source lang="mIRC">ON *:DCCSERVER:Chat:echo User $nick ( $+ $address $+ ) is attempting to initiate a DCC Chat.</source>
  

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)