* lisp/erc/erc-goodies.el (noncommands): Don't register functions
twice.
* lisp/erc/erc-ring.el (ring): Ditto.
"This mode distinguishes non-commands.
Commands listed in `erc-insert-this' know how to display
themselves."
- ((push 'erc-send-distinguish-noncommands erc-pre-send-functions))
+ ((cl-pushnew 'erc-send-distinguish-noncommands erc-pre-send-functions))
((setq erc-pre-send-functions (delq 'erc-send-distinguish-noncommands
erc-pre-send-functions))))
(define-erc-module ring nil
"Stores input in a ring so that previous commands and messages can
be recalled using M-p and M-n."
- ((push 'erc-add-to-input-ring erc-pre-send-functions)
+ ((cl-pushnew 'erc-add-to-input-ring erc-pre-send-functions)
(define-key erc-mode-map "\M-p" 'erc-previous-command)
(define-key erc-mode-map "\M-n" 'erc-next-command))
((setq erc-pre-send-functions (delq 'erc-add-to-input-ring