Change defcustom types of two non-standard hooks
* lisp/erc/erc.el (erc-before-connect, erc-after-connect): Change type from 'hook to 'function (bug#34657).
This commit is contained in:
@@ -2136,19 +2136,20 @@ If no buffer matches, return nil."
|
||||
(erc-current-nick-p nick)))))
|
||||
|
||||
(defcustom erc-before-connect nil
|
||||
"Hook called before connecting to a server.
|
||||
This hook gets executed before `erc' actually invokes `erc-mode'
|
||||
with your input data. The functions in here get called with three
|
||||
parameters, SERVER, PORT and NICK."
|
||||
"Functions called before connecting to a server.
|
||||
The functions in this variable gets executed before `erc'
|
||||
actually invokes `erc-mode' with your input data. The functions
|
||||
in here get called with three parameters, SERVER, PORT and NICK."
|
||||
:group 'erc-hooks
|
||||
:type 'hook)
|
||||
:type '(repeat function))
|
||||
|
||||
(defcustom erc-after-connect nil
|
||||
"Hook called after connecting to a server.
|
||||
This hook gets executed when an end of MOTD has been received. All
|
||||
functions in here get called with the parameters SERVER and NICK."
|
||||
"Functions called after connecting to a server.
|
||||
This functions in this variable gets executed when an end of MOTD
|
||||
has been received. All functions in here get called with the
|
||||
parameters SERVER and NICK."
|
||||
:group 'erc-hooks
|
||||
:type 'hook)
|
||||
:type '(repeat function))
|
||||
|
||||
;;;###autoload
|
||||
(defun erc-select-read-args ()
|
||||
|
||||
Reference in New Issue
Block a user