From: Philip Kaludercic Date: Tue, 6 Jul 2021 06:50:21 +0000 (+0200) Subject: Fix issues with argument parsing in rcirc-define-command X-Git-Tag: emacs-28.0.90~1748^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1d735756818fcd558722ee1cdc47ad44bcde5fb0;p=emacs.git Fix issues with argument parsing in rcirc-define-command * rcirc.el (rcirc-define-command): Fix issues --- diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 4f8d9612c6a..caec1508489 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el @@ -2453,9 +2453,9 @@ that, an interactive form can specified." "\nby `rcirc-buffer-process' and `rcirc-target' will be used.") (interactive (list ,@interactive-spec)) (unless (if (listp ,argument) - (not (<= ,required (length ,argument) ,total)) + (<= ,required (length ,argument) ,total) (string-match ,regexp ,argument)) - (user-error "Malformed input (%s): %S" ,command ',arguments)) + (user-error "Malformed input (%s): %S" ',command ',argument)) (let ((process (or process (rcirc-buffer-process))) (target (or target rcirc-target))) (ignore target process)