Function: erc-remove-channel-users

erc-remove-channel-users is a byte-compiled function defined in erc.el.gz.

Signature

(erc-remove-channel-users)

Documentation

Drain current buffer's erc-channel-members table.

Also remove members from the server table if this was their only buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-remove-channel-users ()
  "Drain current buffer's `erc-channel-members' table.
Also remove members from the server table if this was their only buffer."
  (when (erc--target-channel-p erc--target)
    (setf (erc--target-channel-joined-p erc--target) nil))
  (when (and erc-server-connected
             (erc-server-process-alive)
             (hash-table-p erc-channel-users))
    (maphash (lambda (nick _cdata)
               (erc-remove-channel-user nick))
             erc-channel-users)
    (clrhash erc-channel-users)))