emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 42c3f7a: * lisp/erc/erc.el (erc-process-input-line): Undo confuse


From: Stefan Monnier
Subject: master 42c3f7a: * lisp/erc/erc.el (erc-process-input-line): Undo confused last change
Date: Mon, 4 Jan 2021 15:25:36 -0500 (EST)

branch: master
commit 42c3f7a134f8e51f4eb78e907abb521421e50e39
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * lisp/erc/erc.el (erc-process-input-line): Undo confused last change
---
 lisp/erc/erc.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 66f8828..bb68173 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -2821,9 +2821,9 @@ this function from interpreting the line as a command."
         (let* ((cmd  (nth 0 command-list))
                (args (nth 1 command-list)))
           (condition-case nil
-              (if (functionp args)
-                  (funcall cmd args)
-                (apply cmd args))
+              (if (listp args)
+                  (apply cmd args)
+                (funcall cmd args))
             (wrong-number-of-arguments
              (erc-display-message nil 'error (current-buffer) 'incorrect-args
                                   ?c (erc-command-name cmd)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]