Variable: erc-query-on-unjoined-chan-privmsg
erc-query-on-unjoined-chan-privmsg is a customizable variable defined
in erc.el.gz.
Value
t
Documentation
If non-nil create query buffer on receiving any PRIVMSG at all.
This includes PRIVMSGs directed to channels. If you are using an IRC bouncer, such as dircproxy, to keep a log of channels when you are disconnected, you should set this option to t.
WARNING: this option was mistakenly removed from ERC 5.5's client
code, so setting it to nil is temporarily ineffective. That is,
ERC now always creates a buffer when receiving a PRIVMSG directed
at a channel for which none exists. And despite this option's
name and its doc string's use of "query" to refer to any
conversation with a target, it did not previously allow for
opting out of buffer creation for direct messages (at least not
in Emacs 27 and 28). However, such behavior has always been and
will continue to be available by setting erc-auto-query(var)/erc-auto-query(fun) to nil.
If needing to restore pre-5.5 functionality immediately, see Info
node (erc) Upgrading.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defcustom erc-query-on-unjoined-chan-privmsg t
"If non-nil create query buffer on receiving any PRIVMSG at all.
This includes PRIVMSGs directed to channels. If you are using an IRC
bouncer, such as dircproxy, to keep a log of channels when you are
disconnected, you should set this option to t.
WARNING: this option was mistakenly removed from ERC 5.5's client
code, so setting it to nil is temporarily ineffective. That is,
ERC now always creates a buffer when receiving a PRIVMSG directed
at a channel for which none exists. And despite this option's
name and its doc string's use of \"query\" to refer to any
conversation with a target, it did not previously allow for
opting out of buffer creation for direct messages (at least not
in Emacs 27 and 28). However, such behavior has always been and
will continue to be available by setting `erc-auto-query' to nil.
If needing to restore pre-5.5 functionality immediately, see Info
node `(erc) Upgrading'."
:group 'erc-query
:set (lambda (sym val)
(unless (set sym val)
(lwarn 'erc :warning
"Setting `%s' to nil is currently ineffective; %s"
sym "see doc string for details.")))
:type 'boolean)