Variable: erc-part-reason-various-alist
erc-part-reason-various-alist is a customizable variable defined in
erc.el.gz.
Value
nil
Documentation
Alist of possible arguments to the /part command.
Each element has the form:
(REGEXP RESULT)
If REGEXP matches the argument to /part, then its relevant RESULT will be used. RESULT may be either a string, or a function. If a function, it should return the part message as a string.
If no elements match, then the empty string is used.
As an example:
(setq erc-part-reason-various-alist
'(("xmms" dme:now-playing)
("version" erc-part-reason-normal)
("home" "Gone home !")
("^$" "Default Reason")))
If the user types "/part home", then "Gone home !" will be used
as the part message.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defcustom erc-part-reason-various-alist nil
"Alist of possible arguments to the /part command.
Each element has the form:
(REGEXP RESULT)
If REGEXP matches the argument to /part, then its relevant RESULT
will be used. RESULT may be either a string, or a function. If
a function, it should return the part message as a string.
If no elements match, then the empty string is used.
As an example:
(setq erc-part-reason-various-alist
\\='((\"xmms\" dme:now-playing)
(\"version\" erc-part-reason-normal)
(\"home\" \"Gone home !\")
(\"^$\" \"Default Reason\")))
If the user types \"/part home\", then \"Gone home !\" will be used
as the part message."
:group 'erc-quit-and-part
:type '(repeat (list regexp (choice (string) (function)))))