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

Line 1: Line 1:
 
{{mIRC Guide}}
 
{{mIRC Guide}}
The '''ON CTCPREPLY''' event triggers after a user's client responds to a [[/ctcp command - mIRC|/ctcp command]]. The [[CTCP requests]] page discusses, in detail, common [[CTCP]] requests.
+
The '''ON CTCPREPLY''' event triggers when a user responds to a standars {{mIRC|/ctcp}} command.
  
 
== Synopsis ==
 
== Synopsis ==
Line 6: Line 6:
  
 
== Parameters ==
 
== Parameters ==
<span style="display: inline-block; width: 105px;">'''<level>'''</span>The level for the event to trigger.
 
  
<span style="display: inline-block; width: 105px;">'''<matchtext>'''</span>The text that to be matched. Can also be a [[wildcard]].
+
* '''<level>''' - The corresponding {{mIRC|access levels}} for the event to trigger.
 
+
* '''<matchtext>''' - The corresponding {{mIRC|on text|matchtext}} for the event to trigger.
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met.
+
* '''<commands>''' - The commands to be performed when the event triggers
  
 
== Example ==
 
== Example ==
Echo, to the active window, the reply a user gives to a [[Ctcp version - mIRC|Ctcp version]] request.
+
Echo, to the active window, the reply a user gives to a ctcp version request.
 
<source lang="mIRC">ON *:CTCPREPLY:VERSION*:echo -a $nick $+ 's IRC client is: $1-</source>
 
<source lang="mIRC">ON *:CTCPREPLY:VERSION*:echo -a $nick $+ 's IRC client is: $1-</source>
  
Line 20: Line 19:
  
 
== See Also ==
 
== See Also ==
* [[Ctcp events - mIRC|CTCP EVENTS]]
+
* {{mIRC|/ctcp}}
* [[/ctcp command - mIRC|/CTCP]]
+
* {{mIRC|/ctcpreply}}
 
{{mIRC on event list}}
 
{{mIRC on event list}}
  
 
[[Category:mIRC on events|ctcpreply]]
 
[[Category:mIRC on events|ctcpreply]]

Revision as of 17:04, 6 February 2016

Template:mIRC Guide The ON CTCPREPLY event triggers when a user responds to a standars /ctcp command.

Synopsis

ON <level>:CTCPREPLY:<matchtext>:<commands>

Parameters

  • <level> - The corresponding access levels for the event to trigger.
  • <matchtext> - The corresponding matchtext for the event to trigger.
  • <commands> - The commands to be performed when the event triggers

Example

Echo, to the active window, the reply a user gives to a ctcp version request.

ON *:CTCPREPLY:VERSION*:echo -a $nick $+ 's IRC client is: $1-

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