Project

General

Profile

Actions

$loop » History » Revision 1

Revision 1/3 | Next »
Per Amundsen, 07/10/2015 12:04 PM


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'.

Parameters

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 9 years ago · 1 revisions

Also available in: PDF HTML TXT