Difference between revisions of "$address (nick)"

From Scriptwiki
Jump to: navigation, search
m
m (and changed "see also" to match the other articles)
 
Line 14: Line 14:
 
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.
 
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]]

Latest revision as of 09:10, 29 June 2007

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.