Function: erc-remove-user
erc-remove-user is a byte-compiled function defined in erc.el.gz.
Signature
(erc-remove-user NICK)
Documentation
This function is for internal use only.
Removes the user with nickname NICK from the erc-server-users
list as well as from all erc-channel-users lists.
See also: erc-remove-server-user and
erc-remove-channel-user.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-remove-user (nick)
"This function is for internal use only.
Removes the user with nickname NICK from the `erc-server-users'
list as well as from all `erc-channel-users' lists.
See also: `erc-remove-server-user' and
`erc-remove-channel-user'."
(let ((user (erc-get-server-user nick)))
(when user
(let ((buffers (erc-server-user-buffers user)))
(dolist (buf buffers)
(if (buffer-live-p buf)
(with-current-buffer buf
(remhash (erc-downcase nick) erc-channel-users)
(run-hooks 'erc-channel-members-changed-hook)))))
(erc-remove-server-user nick))))