Difference between revisions of "$site"

From Scriptwiki
Jump to: navigation, search
 
(added $fulladdress to see also)
 
Line 1: Line 1:
Returns the portion of [[$address]] after the @ related to an event.
+
Returns the portion of [[$address]] after the @ for the user associated with an event in the form user@host.
 
  $site
 
  $site
 
== Example ==
 
== Example ==
Line 9: Line 9:
  
 
== See also ==
 
== See also ==
[[$wildsite]] returns the address of a user who triggered an event in the form *!*@host
+
*[[$fulladdress]] returns the full address of the user triggering an event in the form nick!user@host.
 +
*[[$wildsite]] returns the address of the user who triggered an event in the form *!*@host.
  
 
[[Category:Remote Identifiers]]
 
[[Category:Remote Identifiers]]

Latest revision as of 18:30, 22 April 2006

Returns the portion of $address after the @ for the user associated with an event in the form user@host.

$site

Example

on *:JOIN:#: {
  if ($nick === Dana) {
    echo -ag $site ; returns staff.quakenet.org
  }
}

See also

  • $fulladdress returns the full address of the user triggering an event in the form nick!user@host.
  • $wildsite returns the address of the user who triggered an event in the form *!*@host.