Function: erc-already-logged-in

erc-already-logged-in is a byte-compiled function defined in erc.el.gz.

Signature

(erc-already-logged-in SERVER PORT NICK)

Documentation

Return the buffers corresponding to a NICK on PORT of a session SERVER.

This is determined by looking for the appropriate buffer and checking whether the connection is still alive. If no buffer matches, return nil.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-already-logged-in (server port nick)
  "Return the buffers corresponding to a NICK on PORT of a session SERVER.
This is determined by looking for the appropriate buffer and checking
whether the connection is still alive.
If no buffer matches, return nil."
  (erc-buffer-list
   (lambda ()
     (and (erc-server-process-alive)
          (string= erc-session-server server)
          (erc-port-equal erc-session-port port)
          (erc-current-nick-p nick)))))