Subject: bug#50908: [PATCH] erc-user-mode: Set "+i" by default

From: Stefan Kangas <[email-masked]>
Date: Mon, 4 Oct 2021 01:47:17 +0000

Amin Bandali <[email-masked]> writes:

> I'll review and merge Stefan's patch once he sends it.

See attached.
From ec9e8a9961362cd238879c9e96617ebd2f64af9a Mon Sep 17 00:00:00 2001
From: Stefan Kangas <[email-masked]>
Date: Thu, 30 Sep 2021 01:49:42 +0200
Subject: [PATCH] * lisp/erc/erc.el (erc-user-mode): Set "+i" by default.

---
 lisp/erc/erc.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 7fa2d37c9f..cad7793fb6 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -188,10 +188,12 @@ erc-password
 It is not strictly necessary to provide this, since ERC will
 prompt you for it.")
 
-(defcustom erc-user-mode nil
+(defcustom erc-user-mode "+i"
+  ;; +i "Invisible".  Hides user from global /who and /names.
   "Initial user modes to be set after a connection is established."
   :group 'erc
-  :type '(choice (const nil) string function))
+  :type '(choice (const nil) string function)
+  :version "28.1")

 (defcustom erc-prompt-for-password t
-- 
2.30.2