Difference between revisions of "$(...)"

From Scriptwiki
Jump to: navigation, search
m (added also see)
m (Also see -> See also (like in other pages))
Line 12: Line 12:
 
This example will echo to your active window whenever someone mentioned your nickname.
 
This example will echo to your active window whenever someone mentioned your nickname.
  
== Also see ==
+
== See also ==
 
* [[$eval]]
 
* [[$eval]]
 
[[Category:Remote Identifiers]]
 
[[Category:Remote Identifiers]]

Revision as of 07:56, 13 June 2007

This identifier allows you to create a dynamic match parameter in an event.

$(...)

You can use $1- to reference the incoming line.

Note that this identifier can only be used in a match text of an event.

Example

On *:TEXT:$(* $+ $me $+ *):#: {
 echo -a $nick just mentioned your nickname in $chan $+ .
}

This example will echo to your active window whenever someone mentioned your nickname.

See also