Project

General

Profile

Actions

Added in 1.9.7

$loop(N, M, text)

Starts a loop from 'N' to 'M' and executes 'text' with $1 and \1 as the current number and returns a space separated text from the result of 'text'.

\1 is replaced with $+ $1 $+.

Parameters

Parameter Description
N Starting number.
M End number. (N + M = end)
text The identifier(s) to execute.

Example

; Return a list of all nicks in the channel
//echo -ag $loop(1, $nick(#, 0), $nick(#, \1))

; Whois all nicks in a channel
alias iwhois {
  whois $1
}
//noop $loop(1, $nick(#, 0), $iwhois($nick(#, \1)))

Updated by Per Amundsen over 1 year ago · 3 revisions

Also available in: PDF HTML TXT