Function: erc-remove-channel-user
erc-remove-channel-user is a byte-compiled function defined in
erc.el.gz.
Signature
(erc-remove-channel-user NICK)
Documentation
Remove NICK from the current target buffer's erc-channel-members.
If this was their only target, also remove them from erc-server-users.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-remove-channel-user (nick)
"Remove NICK from the current target buffer's `erc-channel-members'.
If this was their only target, also remove them from `erc-server-users'."
(let ((channel-data (erc-get-channel-user nick)))
(when channel-data
(let ((user (car channel-data)))
(setf (erc-server-user-buffers user)
(delq (current-buffer)
(erc-server-user-buffers user)))
(remhash (erc-downcase nick) erc-channel-users)
(funcall erc--forget-server-user-function nick user)))))