Function: rcirc-remove-nick-channel
rcirc-remove-nick-channel is a byte-compiled function defined in
rcirc.el.gz.
Signature
(rcirc-remove-nick-channel PROCESS NICK CHANNEL)
Documentation
Remove the CHANNEL from list associated with NICK.
PROCESS is the process object for the current connection.
Source Code
;; Defined in /usr/src/emacs/lisp/net/rcirc.el.gz
(defun rcirc-remove-nick-channel (process nick channel)
"Remove the CHANNEL from list associated with NICK.
PROCESS is the process object for the current connection."
(with-rcirc-process-buffer process
(let* ((chans (gethash nick rcirc-nick-table))
(newchans
;; instead of assoc-string-delete-all:
(let ((record (assoc-string channel chans t)))
(when record
(setcar record 'delete)
(assq-delete-all 'delete chans)))))
(if newchans
(puthash nick newchans rcirc-nick-table)
(remhash nick rcirc-nick-table)))))