* bug#58439: [PATCH] [ELPA GNU] rcirc-color: Fix color assigning
@ 2022-10-11 13:39 Thuna
2022-10-12 11:24 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Thuna @ 2022-10-11 13:39 UTC (permalink / raw)
To: 58439
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: The patch --]
[-- Type: text/x-patch, Size: 995 bytes --]
From 73f917c6de3acbab3f34fa839cc9e1b56517d084 Mon Sep 17 00:00:00 2001
From: Thuna <thuna.cing@gmail.com>
Date: Tue, 11 Oct 2022 15:35:47 +0200
Subject: [PATCH] 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))))
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#58439: [PATCH] [ELPA GNU] rcirc-color: Fix color assigning
2022-10-11 13:39 bug#58439: [PATCH] [ELPA GNU] rcirc-color: Fix color assigning Thuna
@ 2022-10-12 11:24 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-10-12 11:24 UTC (permalink / raw)
To: Thuna; +Cc: 58439
Thuna <thuna.cing@gmail.com> writes:
> * 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.
Thanks; pushed to ELPA.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-12 11:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-11 13:39 bug#58439: [PATCH] [ELPA GNU] rcirc-color: Fix color assigning Thuna
2022-10-12 11:24 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.