Difference between revisions of "$address (nick)"
From Scriptwiki
m |
|||
Line 10: | Line 10: | ||
This example will return ''Dana!dana@staff.quakenet.org''. | This example will return ''Dana!dana@staff.quakenet.org''. | ||
+ | |||
+ | mode [[$chan]] -o+b [[$nick]] [[$iif]](*.users.quakenet.org iswm $address($nick,2),[[$v2]],$address($nick,3)) | ||
+ | This example will check if someones host is <QAuth>.users.quakenet.org and if it is, use banmask type 2 on them, else use mask type 3. | ||
== See Also == | == See Also == | ||
[[$ial]] returns the Nth address matching mask in the IAL. | [[$ial]] returns the Nth address matching mask in the IAL. | ||
[[Category:Nick and Address Identifiers]] | [[Category:Nick and Address Identifiers]] |
Revision as of 21:32, 14 December 2005
Searches the Internal Address List for the address associated with the specified nickname.
$address(nickname,type)
Note that if the Internal Address List doesn't contain a matching nickname, the identifier returns $null.
To get a list of all types, look at $mask.
Example
echo -a $address(Dana,5)
This example will return Dana!dana@staff.quakenet.org.
mode $chan -o+b $nick $iif(*.users.quakenet.org iswm $address($nick,2),$v2,$address($nick,3))
This example will check if someones host is <QAuth>.users.quakenet.org and if it is, use banmask type 2 on them, else use mask type 3.
See Also
$ial returns the Nth address matching mask in the IAL.