$1-

From Scriptwiki
Revision as of 20:32, 30 August 2005 by Tovrleaf (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


You can use the $1, $2 ... $N to refer to N'th parameter in string. You can also use $N- to refer parameters from N forward and $N-$M to refer to parameters from N to M.

Examples

In aliases $1- starts from the first word after the call of alias.

alias shout msg $active HALLO: i just said $1-

Usage: /shout i like milk.

Usage in events is simple the same.

on *:text:#mirc:!repeat *:{ msg $chan $2- }

$1 would refer to word !repeat.

See Also