$1-: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
* [[$0]] | * [[$0]] | ||
{{Author|Tovrleaf}} | |||
[[Category:Remote Identifiers]] | [[Category:Remote Identifiers]] |
Revision as of 08:19, 1 September 2005
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
Contributed by Tovrleaf |