[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/rcirc-color 6881c924c0: rcirc-color: Fix color assignin
From: |
Lars Ingebrigtsen |
Subject: |
[elpa] externals/rcirc-color 6881c924c0: rcirc-color: Fix color assigning |
Date: |
Wed, 12 Oct 2022 07:24:42 -0400 (EDT) |
branch: externals/rcirc-color
commit 6881c924c055e722dd563468c9d48cd1955a6853
Author: Thuna <thuna.cing@gmail.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
rcirc-color: Fix color assigning
* rcirc-color.el (rcirc-do-color): When a color is given to
rcirc-color with `/color NICK COLOR', use the specified COLOR instead
of getting a random one.
---
rcirc-color.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rcirc-color.el b/rcirc-color.el
index b66f4a1143..ee96ae8bd5 100644
--- a/rcirc-color.el
+++ b/rcirc-color.el
@@ -162,7 +162,7 @@ commands."
(rcirc-print process (rcirc-nick process) "NOTICE" target
(mapconcat 'identity names " ")))
(let* ((index (random (length rcirc-colors)))
- (color (elt rcirc-colors index))
+ (color (or color (elt rcirc-colors index)))
(face `(:foreground ,color ,@rcirc-color-other-attributes)))
(puthash nick face rcirc-color-mapping))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/rcirc-color 6881c924c0: rcirc-color: Fix color assigning,
Lars Ingebrigtsen <=