Function: rcirc-handler-366

rcirc-handler-366 is a byte-compiled function defined in rcirc.el.gz.

Signature

(rcirc-handler-366 PROCESS SENDER ARGS TEXT)

Documentation

Handle end of user list (RPL_ENDOFNAMES).

SENDER is passed on to rcirc-print. PROCESS is the process object for the current connection.

Source Code

;; Defined in /usr/src/emacs/lisp/net/rcirc.el.gz
(defun rcirc-handler-366 (process sender args _text)
  "Handle end of user list (RPL_ENDOFNAMES).
SENDER is passed on to `rcirc-print'.
PROCESS is the process object for the current connection."
  (let* ((channel (cadr args))
         (buffer (rcirc-get-temp-buffer-create process channel)))
    (with-current-buffer buffer
      (rcirc-print process sender "NAMES" channel
                   (let ((content (buffer-substring (point-min) (point-max))))
                     (rcirc-sort-nicknames-join content " "))))
    (kill-buffer buffer)))