$port

From Scriptwiki
Revision as of 11:32, 12 April 2008 by Daveoh (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns the port number of the server to which you're currently connected.

$port
  • This function has no parameters.

Example

echo -ag $port

Echoes the port used for the active connection to your active window.

See Also

  • $serverip - Returns the server IP address.
  • $server - Returns the name of the server to which you are currently connected.
  • $network - Returns the name of the IRC network you are currently connected to.