Difference between revisions of "$abook"
From Scriptwiki
m |
|||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | Returns informations about users, stored in [[MIRC|mIRC]]s internal address book. | + | Returns informations about users, stored in [[MIRC|mIRC]]s internal [[Address book|address book]]. |
$abook(nick,N) | $abook(nick,N) | ||
Line 18: | Line 18: | ||
We have added [[Dana]] to our address book. And can thus use the following: | We have added [[Dana]] to our address book. And can thus use the following: | ||
− | /[[Echo|echo -a | + | //[[Echo|echo]] -a $abook(Dana).info ;will return ''DDB v5 - #help.script servicebot by cmouse&k0sm0s'' |
− | /echo -a $abook(Dana).website will return ''http://script.quakenet.org/'' | + | //echo -a $abook(Dana).website ;will return ''http://script.quakenet.org/'' |
− | /echo -a $abook(Dana).note2 will return ''the second note saved with her'' | + | //echo -a $abook(Dana).note2 ;will return ''the second note saved with her'' |
− | + | ||
− | /echo -a $abook(1).nick will return ''Dana'' if she is number 1 and/or the only one in the address book. | + | //echo -a $abook(1).nick ;will return ''Dana'' if she is number 1 and/or the only one in the address book. |
− | /echo -a $abook(Dan*,1).nick will return ''Dana'' since that is the first address book entry matching the given wildcard. | + | //echo -a $abook(Dan*,1).nick ;will return ''Dana'' since that is the first address book entry matching the given wildcard. |
== See also == | == See also == | ||
− | + | * [[Address Book]] for more information about the address book in general.<br \> | |
− | [[Address Book]] for more information about the address book in general.<br \> | + | * [[Abook]] for details on how to add people to the address book through commands. |
− | [[Abook | ||
− | [[Category: | + | [[Category:Userlist]] |
+ | [[Category:Remote Identifiers]] |
Latest revision as of 00:19, 3 February 2011
Returns informations about users, stored in mIRCs internal address book.
$abook(nick,N)
- If both nick and N is supplied mIRC will think nick is supplied in wildcarded form. Thus returning the Nth entry in the address book.
- If only N is used it will return the Nth entry. If N is 0 it will return the number of entries in the address book.
- If only a nick is used it will return info about that nick.
Properties:
- nick will return the nick associated with an entry.
- info will return the name field stored with a nick.
- email will return the email address associated with nick.
- website will return the website supplied with nick.
- picture will return the full path to the picture you have assigned the user.
- noteN will return the Nth note assigned to that users entry. N being a number.
Examples
We have added Dana to our address book. And can thus use the following:
//echo -a $abook(Dana).info ;will return DDB v5 - #help.script servicebot by cmouse&k0sm0s //echo -a $abook(Dana).website ;will return http://script.quakenet.org/ //echo -a $abook(Dana).note2 ;will return the second note saved with her //echo -a $abook(1).nick ;will return Dana if she is number 1 and/or the only one in the address book. //echo -a $abook(Dan*,1).nick ;will return Dana since that is the first address book entry matching the given wildcard.
See also
- Address Book for more information about the address book in general.
- Abook for details on how to add people to the address book through commands.