$1-: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m Events -> Category:Events |
||
Line 11: | Line 11: | ||
Usage: /shout i like milk. | Usage: /shout i like milk. | ||
In [[events]] $1- is the text line. | In [[:Category:Events|events]] $1- is the text line. | ||
[[On_text|on *:text]]:#mirc:!repeat *:{ msg [[$chan]] $2- } | [[On_text|on *:text]]:#mirc:!repeat *:{ msg [[$chan]] $2- } |
Revision as of 22:11, 30 October 2008
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 describe $active is shouting: $1-
Usage: /shout i like milk.
In events $1- is the text line.
on *:text:#mirc:!repeat *:{ msg $chan $2- }
$1 would refer to word !repeat.
See Also
Contributed by Tovrleaf |