Function: erc-compute-port

erc-compute-port is a byte-compiled function defined in erc.el.gz.

Signature

(erc-compute-port &optional PORT)

Documentation

Return a port for an IRC server.

This tries a number of increasingly more default methods until a non-nil value is found.

- PORT (the argument passed to this function)
- The erc-port option
- The erc-default-port variable

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-compute-port (&optional port)
  "Return a port for an IRC server.

This tries a number of increasingly more default methods until a
non-nil value is found.

- PORT (the argument passed to this function)
- The `erc-port' option
- The `erc-default-port' variable"
  (or port erc-port erc-default-port))