Project

General

Profile

Actions

$1- » History » Revision 2

« Previous | Revision 2/5 (diff) | Next »
Per Amundsen, 01/04/2017 11:58 AM


Added in 1.9.0

$1-$N

Returns a range of tokens associated with current script.

You can use $N- to refer to parameters N and onward, and $N-M to refer to token $N through to $M.
To refer to a whole line, you would use $1-.

See also /tokenize.

Can be prefixed with # to ensure the resulted text starts with a channel prefix.

Example

on *:TEXT:*:*:Number of tokens in the incoming message is $0 first token is $1 all tokens is $1-

alias Example {
  ; Tokenize the string 'a,b,c,d.
  /tokenize 44 a,b,c,d

  ; Print number of tokens.
  echo -ag Number of tokens is $0 first token is $1 all tokens is $1-
}

Updated by Per Amundsen over 7 years ago · 2 revisions

Also available in: PDF HTML TXT