$ialchan » History » Version 13
Per Amundsen, 02/23/2023 01:52 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 | 12 | Per Amundsen | table(ktable). |
10 | |*Parameter*|*Description*| |
||
11 | | nick<notextile>|</notextile>mask | Nick or mash to lookup. | |
||
12 | | <notextile>#</notextile> | The channel to lookup on. | |
||
13 | | [N] | If N = 0 number of addresses, otherwise the Nth address (default is 1). (optional) | |
||
14 | 1 | Per Amundsen | |
15 | *Properties* |
||
16 | |||
17 | 12 | Per Amundsen | table(ktable). |
18 | |*Property*|*Description*| |
||
19 | | .pnick | Returns the channelnick. (includes prefix) | |
||
20 | 13 | Per Amundsen | | .cnick | Returns the nick in .@%+nick format. (Only the highest channel prefix is returned, *(AdiIRC only)* | |
21 | 12 | Per Amundsen | | .nick | Returns the nick. | |
22 | | .user | Returns the ident. | |
||
23 | | .host | Returns the hostname. | |
||
24 | | .addr | Returns the address in ident@host format. | |
||
25 | | .mark | The user [[/ialmark<notextile>|</notextile>mark]]. | |
||
26 | | .gecos | Returns the realname/fullname. | |
||
27 | | .account | Returns the account name. ([[IRCv3]] feature) | |
||
28 | | .away | Returns [[$true]] if the user is away, otherwise [[$false]]. | |
||
29 | | .bot | Returns [[$true]] if the user is marked as a "IRCv3 bot":https://ircv3.net/specs/extensions/bot-mode, otherwise [[$false]]. | |
||
30 | 1 | Per Amundsen | |
31 | *Example* |
||
32 | |||
33 | <pre> |
||
34 | ; Prints number of matches from 'nick' on '#channel'. |
||
35 | //echo -ag $ialchan(nick, #, 0) |
||
36 | |||
37 | ; Prints the first matc from 'nick' on '#channel'. |
||
38 | //echo -ag $ialchan(nick, #, 1) |
||
39 | </pre> |
||
40 | |||
41 |