Difference between revisions of "$address (nick)"

From Scriptwiki
Jump to: navigation, search
 
m (and changed "see also" to match the other articles)
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
  $address(nickname,type)
 
  $address(nickname,type)
  
'''Note''' that if the [[IAL|Internal Address List]] doesn't contain a matching nickname, the identifier returns [[$null]].
+
'''Note''' that if the [[:Category:IAL|Internal Address List]] doesn't contain a matching nickname, the identifier returns [[$null]].
  
 
To get a list of all types, look at [[$mask]].
 
To get a list of all types, look at [[$mask]].
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]]

Latest revision as of 08: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.