Subject: Re: bug#66456: 30.0.50; erc-server-prevent-duplicates uses list instead of repeat

From: Mauro Aranda <[email-masked]>
Date: Tue, 10 Oct 2023 20:23:08 -0300

tags 66456 patch
quit

Patch attached.

From 3f8a0ea79ad491ece1344c2f4a82fa4bdad54d2e Mon Sep 17 00:00:00 2001
From: Mauro Aranda <[email-masked]>
Date: Tue, 10 Oct 2023 20:22:06 -0300
Subject: [PATCH] Fix erc-server-prevent-duplicates :type

* lisp/erc/erc-backend.el (erc-server-prevent-duplicates): Change
:type to allow a variable-length list of strings.  (Bug#66456)
---
 lisp/erc/erc-backend.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el
index fb10ee31c78..2fb140f57ce 100644
--- a/lisp/erc/erc-backend.el
+++ b/lisp/erc/erc-backend.el
@@ -511,7 +511,7 @@ erc-server-prevent-duplicates
   "Either nil or a list of strings.
 Each string is a IRC message type, like PRIVMSG or NOTICE.
 All Message types in that list of subjected to duplicate prevention."
-  :type '(choice (const nil) (list string)))
+  :type '(repeat string))
 
 (defcustom erc-server-duplicate-timeout 60
   "The time allowed in seconds between duplicate messages.
-- 
2.34.1