summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2021-01-04 15:25:29 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2021-01-04 15:25:29 -0500
commit42c3f7a134f8e51f4eb78e907abb521421e50e39 (patch)
tree3a60974df2d2fd8e96fc5598c142d3d836e8eddd
parent1e776d7d6a5672de15b2ee9c75f5637ca1756280 (diff)
downloademacs-42c3f7a134f8e51f4eb78e907abb521421e50e39.tar.gz
* lisp/erc/erc.el (erc-process-input-line): Undo confused last change
-rw-r--r--lisp/erc/erc.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 66f88280984..bb68173b6dc 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)