Function: erc-update-channel-limit
erc-update-channel-limit is a byte-compiled function defined in
erc.el.gz.
Signature
(erc-update-channel-limit CHANNEL ONOFF N)
Documentation
Update CHANNEL's user limit to N.
Expect ONOFF to be on when the mode is being enabled and off
otherwise. And because this mode is of "type C", expect N to
be non-nil only when enabling.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-update-channel-limit (channel onoff n)
"Update CHANNEL's user limit to N.
Expect ONOFF to be `on' when the mode is being enabled and `off'
otherwise. And because this mode is of \"type C\", expect N to
be non-nil only when enabling."
(if (or (not (eq onoff 'on))
(and (stringp n) (string-match "^[0-9]+$" n)))
(erc-with-buffer
(channel)
(cond ((eq onoff 'on) (setq erc-channel-user-limit (string-to-number n)))
(t (setq erc-channel-user-limit nil))))))