$(...): Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
m Also see -> See also (like in other pages)
removed incorrect note
Line 3: Line 3:


You can use [[$1-]] to reference the incoming line.
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 ==
== Example ==

Revision as of 09:29, 26 January 2008

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

$(...)

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

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