From WikiChip
Editing mirc/on events/on text

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 Text - Events}}
 
 
The '''on text''' event is a mIRC event that triggers when a remote user (I.E. not the local user) receives a channel or a query message.
 
The '''on text''' event is a mIRC event that triggers when a remote user (I.E. not the local user) receives a channel or a query message.
  
Line 8: Line 7:
  
 
== Level ==
 
== Level ==
* '''<level>''' - The appropriate {{mIRC|access levels|access level}} for the event.
+
* '''<level>''' - The appropriate [[access levels - mIRC|access level]] for the event.
  
 
== Matchtext ==
 
== Matchtext ==
Line 25: Line 24:
 
* *!test - the matchtext will match if the text ends with the word "!test"
 
* *!test - the matchtext will match if the text ends with the word "!test"
 
* *!test* - the matchtext will match any text that has "!test" in it (anywhere)
 
* *!test* - the matchtext will match any text that has "!test" in it (anywhere)
* !test & - the matchtext will match any text that start with the word test !test and is only followed by a second word
+
* !test & - the matchtext will match any text that start with the word test !test and his only followed by a second word
  
 
=== The basic text pattern ===
 
=== The basic text pattern ===
The most basic on text event is the normal {{mirc|wildcard}} pattern:
+
The most basic on text event is the normal wildcard pattern:
  
 
<syntaxhighlight lang="mIRC">on *:text:!help:#:{
 
<syntaxhighlight lang="mIRC">on *:text:!help:#:{
Line 90: Line 89:
 
Example:
 
Example:
  
<syntaxhighlight lang="mIRC">;let %chan equal #mSL,#help,#support
+
<syntaxhighlight lang="mIRC">;let %chan equal #mSL,#help,#supprt
 
on *:text:!hi:%chan:{
 
on *:text:!hi:%chan:{
 
   notice $nick Hello!
 
   notice $nick Hello!
 
}</syntaxhighlight>
 
}</syntaxhighlight>
 
Example 2:
 
 
<syntaxhighlight lang="mIRC">
 
; use local identifier $channels to work
 
alias -l channels { return #mSL,#help,#support }
 
on *:text:!hi:$($channels):{
 
  notice $nick Hello!
 
}</syntaxhighlight>
 
 
== Local $identifier available in the on text event ==
 
 
The on text event support the common IRC related local identifiers
 
  
 
== See also==
 
== See also==
Line 116: Line 102:
 
{{mIRC on event list}}
 
{{mIRC on event list}}
  
[[Category:mIRC on events|text]]
+
[[Category:MIRC on events|text]]

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)