emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/rcirc-color c50cfdf02e: * rcirc-color.el (color): Use `


From: Philip Kaludercic
Subject: [elpa] externals/rcirc-color c50cfdf02e: * rcirc-color.el (color): Use `rcirc-define-command'
Date: Wed, 21 Sep 2022 04:30:37 -0400 (EDT)

branch: externals/rcirc-color
commit c50cfdf02e0ae6527d2c9ca6b42c32e680a1ad86
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    * rcirc-color.el (color): Use `rcirc-define-command'
---
 rcirc-color.el | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/rcirc-color.el b/rcirc-color.el
index 872d1d8298..2eff965267 100644
--- a/rcirc-color.el
+++ b/rcirc-color.el
@@ -1,6 +1,6 @@
 ;;; rcirc-color.el --- color nicks  -*- lexical-binding:t -*-
 
-;; Copyright (C) 2005-2021  Free Software Foundation, Inc.
+;; Copyright (C) 2005-2022  Free Software Foundation, Inc.
 
 ;; Author: Alex Schroeder <alex@gnu.org>
 ;; Maintainer: Alex Schroeder <alex@gnu.org>
@@ -124,11 +124,9 @@ This ignores SENDER and RESPONSE."
 
 (add-hook 'rcirc-markup-text-functions #'rcirc-markup-nick-colors)
 
-(defun-rcirc-command color (args)
+(rcirc-define-command color (nick color)
   "Change one of the nick colors."
-  (interactive)
-  (setq args (split-string args))
-  (rcirc-do-color (car args) (cadr args) process target))
+  (rcirc-do-color nick color process target))
 
 (defun rcirc-do-color (nick color process target)
   "Implement the /color command.



reply via email to

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