$ialchan » History » Version 9
Per Amundsen, 11/22/2021 04:07 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | *$ialchan(nick|mask,#,[N])* |
||
| 4 | |||
| 5 | Returns the Nth address on the specified channel matching nick or mask in the Internal Address List. |
||
| 6 | |||
| 7 | *Parameters* |
||
| 8 | |||
| 9 | nick|mask - Nick or mash to lookup. |
||
| 10 | 2 | Per Amundsen | <notextile>#</notextile> - The channel to lookup on. |
| 11 | 1 | Per Amundsen | [N] - If N = 0 number of addresses, otherwise the Nth address (default is 1). (optional) |
| 12 | |||
| 13 | *Properties* |
||
| 14 | |||
| 15 | 4 | Per Amundsen | .pnick - Returns the channelnick. (includes prefix) |
| 16 | 7 | Per Amundsen | .cnick - Returns the nick in .@%+nick format. (Only the highest channel prefix is returned, *AdiIRC only*) |
| 17 | 1 | Per Amundsen | .nick - Returns the nick. |
| 18 | 8 | Per Amundsen | .user - Returns the ident. |
| 19 | 1 | Per Amundsen | .host - Returns the hostname. |
| 20 | .addr - Returns the address in ident@host format. |
||
| 21 | .mark - The user [[/ialmark|mark]]. |
||
| 22 | 8 | Per Amundsen | .gecos - Returns the realname/fullname. |
| 23 | 9 | Per Amundsen | .account - Returns the account name. [[IRCv3]] feature) |
| 24 | 7 | Per Amundsen | .isaway - Returns [[$true]] if the user is away, otherwise [[$false]]. *(AdiIRC only)* |
| 25 | 1 | Per Amundsen | |
| 26 | *Example* |
||
| 27 | |||
| 28 | <pre> |
||
| 29 | ; Prints number of matches from 'nick' on '#channel'. |
||
| 30 | //echo -ag $ialchan(nick, #, 0) |
||
| 31 | |||
| 32 | ; Prints the first matc from 'nick' on '#channel'. |
||
| 33 | //echo -ag $ialchan(nick, #, 1) |
||
| 34 | </pre> |
||
| 35 | |||
| 36 |