Project

General

Profile

Actions

$loop » History » Revision 2

« Previous | Revision 2/3 (diff) | Next »
Per Amundsen, 10/28/2020 10:58 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'.

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

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 3 years ago · 2 revisions

Also available in: PDF HTML TXT