Difference between revisions of "$network"

From Scriptwiki
Jump to: navigation, search
m
m
 
Line 3: Line 3:
  
 
'''Note''' that it may not be possible to get this info if a network doesn't provide it. QuakeNet '''does''' provide this information.
 
'''Note''' that it may not be possible to get this info if a network doesn't provide it. QuakeNet '''does''' provide this information.
 +
 +
* This function has no parameters.
  
 
== Example ==
 
== Example ==
  [[echo]] -a $network
+
 
This would echo the network name to your active window.
+
  [[echo]] -ag $network
 +
Echoes the network name of the active connection to the active window.
  
 
== See Also ==
 
== See Also ==
* [[$serverip]], [[$port]] or [[$server]] to receive these information.
+
 
 +
* [[$serverip]] - Returns the server IP address.
 +
* [[$port]] - Returns the port number of the server to which you're currently connected.
 +
* [[$server]] - Returns the name of the server to which you are currently connected.
  
 
[[Category:Other Identifiers]]
 
[[Category:Other Identifiers]]

Latest revision as of 11:34, 12 April 2008

Returns the name of the IRC network you are currently connected to.

$network

Note that it may not be possible to get this info if a network doesn't provide it. QuakeNet does provide this information.

  • This function has no parameters.

Example

echo -ag $network

Echoes the network name of the active connection to the active window.

See Also

  • $serverip - Returns the server IP address.
  • $port - Returns the port number of the server to which you're currently connected.
  • $server - Returns the name of the server to which you are currently connected.