From 1d735756818fcd558722ee1cdc47ad44bcde5fb0 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Tue, 6 Jul 2021 08:50:21 +0200 Subject: [PATCH] Fix issues with argument parsing in rcirc-define-command * rcirc.el (rcirc-define-command): Fix issues --- lisp/net/rcirc.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2