branch: externals/rcirc-color
commit 2c3dd9fd10227a46c2ad907ee5ef0f72d5e90039
Author: Philip Kaludercic <phil...@posteo.net>
Commit: Philip Kaludercic <phil...@posteo.net>

    Revert "* rcirc-color.el (color): Use `rcirc-define-command'"
    
    This reverts commit c50cfdf02e0ae6527d2c9ca6b42c32e680a1ad86.
    
    We cannot make use of `rcirc-define-command' unless we raise the
    minimum version to 28.1.  This is not yet reasonable, so the change is
    reverted for now.
---
 rcirc-color.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/rcirc-color.el b/rcirc-color.el
index 9e0ab14c31..49a56dcf20 100644
--- a/rcirc-color.el
+++ b/rcirc-color.el
@@ -121,9 +121,11 @@ This ignores SENDER and RESPONSE."
        (when face
          (rcirc-add-face (match-beginning 0) (match-end 0) face))))))
 
-(rcirc-define-command color (nick color)
+(defun-rcirc-command color (args)
   "Change one of the nick colors."
-  (rcirc-do-color nick color process target))
+  (interactive)
+  (setq args (split-string args))
+  (rcirc-do-color (car args) (cadr args) process target))
 
 (defun rcirc-do-color (nick color process target)
   "Implement the /color command.

Reply via email to