branch: externals/rcirc-color commit c50cfdf02e0ae6527d2c9ca6b42c32e680a1ad86 Author: Philip Kaludercic <phil...@posteo.net> Commit: Philip Kaludercic <phil...@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 <a...@gnu.org> ;; Maintainer: Alex Schroeder <a...@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.