$ialchan » History » Version 11
Per Amundsen, 02/10/2023 06:36 AM
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 | 10 | Per Amundsen | .account - Returns the account name. ([[IRCv3]] feature) |
24 | 11 | Per Amundsen | .away - Returns [[$true]] if the user is away, otherwise [[$false]]. |
25 | .bot - Returns [[$true]] if the user is marked as a "IRCv3 bot":https://ircv3.net/specs/extensions/bot-mode, otherwise [[$false]]. |
||
26 | 1 | Per Amundsen | |
27 | *Example* |
||
28 | |||
29 | <pre> |
||
30 | ; Prints number of matches from 'nick' on '#channel'. |
||
31 | //echo -ag $ialchan(nick, #, 0) |
||
32 | |||
33 | ; Prints the first matc from 'nick' on '#channel'. |
||
34 | //echo -ag $ialchan(nick, #, 1) |
||
35 | </pre> |
||
36 | |||
37 |