Function: pcomplete-erc-nicks

pcomplete-erc-nicks is a byte-compiled function defined in erc-pcomplete.el.gz.

Signature

(pcomplete-erc-nicks &optional POSTFIX IGNORE-SELF)

Documentation

Return a list of nicks in the current channel.

Optional argument POSTFIX is something to append to the nickname. If optional argument IGNORE-SELF is non-nil, don't return the current nick.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-pcomplete.el.gz
(defun pcomplete-erc-nicks (&optional postfix ignore-self)
  "Return a list of nicks in the current channel.
Optional argument POSTFIX is something to append to the nickname.
If optional argument IGNORE-SELF is non-nil, don't return the current nick."
  (let ((users (if erc-pcomplete-order-nickname-completions
                   (erc-sort-channel-users-by-activity
                    (erc-get-channel-user-list))
                 (erc-get-channel-user-list)))
        (nicks nil))
    (dolist (user users)
      (unless (or (not user)
                  (and ignore-self
                       (string= (erc-server-user-nickname (car user))
                                (erc-current-nick))))
        (setq nicks (cons (concat (erc-server-user-nickname (car user))
                                  postfix)
                          nicks))))
    (nreverse nicks)))