$abook » History » Version 6
Per Amundsen, 02/16/2023 05:14 PM
| 1 | 1 | Per Amundsen | _Added in 2.2_ |
|---|---|---|---|
| 2 | |||
| 3 | *$abook(nick|N,[N])* |
||
| 4 | |||
| 5 | 4 | Per Amundsen | Returns information about nicknames listed in the [[Addressbook_Dialog|Address Book]]. |
| 6 | 1 | Per Amundsen | |
| 7 | _Nick can be a [[Scripting_Wildcards|wildcard]]._ |
||
| 8 | 4 | Per Amundsen | |
| 9 | _See also [[/abook]], [[/uwho]]._ |
||
| 10 | 1 | Per Amundsen | |
| 11 | *Parameters* |
||
| 12 | |||
| 13 | 6 | Per Amundsen | table(ktable). |
| 14 | |*Parameter*|*Description*| |
||
| 15 | | nick<notextile>|</notextile>N | The nick to lookup, if N = 0, number of nicks, otherwise the Nth nick. | |
||
| 16 | | [N] | if N = 0, number of nicks, otherwise the Nth nick. (optional) | |
||
| 17 | 1 | Per Amundsen | |
| 18 | *Properties* |
||
| 19 | |||
| 20 | 6 | Per Amundsen | table(ktable). |
| 21 | |*Property*|*Description*| |
||
| 22 | | .nick | The nickname. | |
||
| 23 | | .info | The name. | |
||
| 24 | | .website | The website. | |
||
| 25 | | .address | The address. *(AdiIRC only)* | |
||
| 26 | | .email | The email. | |
||
| 27 | | .picture | The picture filename. | |
||
| 28 | | .noteN | The Nth note. | |
||
| 29 | 1 | Per Amundsen | |
| 30 | *Example* |
||
| 31 | |||
| 32 | <pre> |
||
| 33 | 2 | Per Amundsen | //echo -ag Number of nicks in the Address book is $abook(*, 0) |
| 34 | 1 | Per Amundsen | |
| 35 | 2 | Per Amundsen | //echo -ag The first nick in Address book is $abook(*, 1) |
| 36 | 1 | Per Amundsen | </pre> |