$loop » History » Version 1
Per Amundsen, 07/10/2015 12:04 PM
1 | 1 | Per Amundsen | _Added in 1.9.7_ |
---|---|---|---|
2 | |||
3 | *$loop(N, M, text)* |
||
4 | |||
5 | 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'. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | N - Starting number. |
||
10 | M - End number. (N + M = end) |
||
11 | text - The identifier(s) to execute. |
||
12 | |||
13 | *Example* |
||
14 | |||
15 | <pre> |
||
16 | ; Return a list of all nicks in the channel |
||
17 | //echo -ag $loop(1, $nick(#, 0), $nick(#, \1)) |
||
18 | |||
19 | ; Whois all nicks in a channel |
||
20 | alias iwhois { |
||
21 | whois $1 |
||
22 | } |
||
23 | //noop $loop(1, $nick(#, 0), $iwhois($nick(#, \1))) |
||
24 | </pre> |