From 7f298bab5234073b1565a7008f63b89979a925d4 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 5 Jul 2022 21:06:36 +0200 Subject: [PATCH] Fix rcirc buffer name collisions * lisp/net/rcirc.el (rcirc-handler-NICK): Avoid naming collisions when renaming buffers (bug#45872). --- lisp/net/rcirc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index dc0946fb09a..775cff97302 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el @@ -3302,7 +3302,7 @@ PROCESS is the process object for the current connection." (with-current-buffer chat-buffer (rcirc-print process sender "NICK" old-nick new-nick) (setq rcirc-target new-nick) - (rename-buffer (rcirc-generate-new-buffer-name process new-nick))) + (rename-buffer (rcirc-generate-new-buffer-name process new-nick) t)) (setf rcirc-buffer-alist (cons (cons new-nick chat-buffer) (delq (assoc-string old-nick rcirc-buffer-alist t) -- 2.39.5