Function: erc-cmd-OPS
erc-cmd-OPS is an interactive and byte-compiled function defined in
erc.el.gz.
Signature
(erc-cmd-OPS)
Documentation
Show the ops in the current channel.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-cmd-OPS ()
"Show the ops in the current channel."
(interactive)
(let ((ops nil))
(if erc-channel-users
(maphash (lambda (_nick user-data)
(let ((cuser (cdr user-data)))
(if (and cuser
(erc-channel-user-op cuser))
(setq ops (cons (erc-server-user-nickname
(car user-data))
ops)))))
erc-channel-users))
(setq ops (sort ops #'string-lessp))
(if ops
(erc-display-message
nil 'notice (current-buffer) 'ops
?i (length ops) ?s (if (> (length ops) 1) "s" "")
?o (mapconcat #'identity ops " "))
(erc-display-message nil 'notice (current-buffer) 'ops-none)))
t)