summaryrefslogtreecommitdiff
path: root/lisp/erc/erc-join.el
diff options
context:
space:
mode:
authorPhil Sainty <psainty@orcon.net.nz>2019-02-26 23:17:51 +1300
committerPhil Sainty <psainty@orcon.net.nz>2019-02-27 00:12:23 +1300
commit594fd343b0368eeed7d40195b23eb2f47170b5b1 (patch)
tree8b45ac1047f40a8184296348e87b73fe7ee1ea9c /lisp/erc/erc-join.el
parent2f7885a4b3609dec19e4595c6c24f3a21f33c5d6 (diff)
downloademacs-fix/bug-34657-erc-hooks.tar.gz
erc: Rename abnormal hooks to use "-functions" suffix (bug 34657)fix/bug-34657-erc-hooks
* lisp/erc/erc.el (erc-before-connect, erc-after-connect): Now obsolete aliases. All uses changed. (erc-before-connect-functions, erc-after-connect-functions): New names with the standard suffix for abnormal hooks. * etc/NEWS: Mention the changes.
Diffstat (limited to 'lisp/erc/erc-join.el')
-rw-r--r--lisp/erc/erc-join.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/erc/erc-join.el b/lisp/erc/erc-join.el
index 896521eaf0a..227e76a1d6c 100644
--- a/lisp/erc/erc-join.el
+++ b/lisp/erc/erc-join.el
@@ -42,11 +42,11 @@
;;;###autoload(autoload 'erc-autojoin-mode "erc-join" nil t)
(define-erc-module autojoin nil
"Makes ERC autojoin on connects and reconnects."
- ((add-hook 'erc-after-connect 'erc-autojoin-channels)
+ ((add-hook 'erc-after-connect-functions 'erc-autojoin-channels)
(add-hook 'erc-nickserv-identified-hook 'erc-autojoin-after-ident)
(add-hook 'erc-server-JOIN-functions 'erc-autojoin-add)
(add-hook 'erc-server-PART-functions 'erc-autojoin-remove))
- ((remove-hook 'erc-after-connect 'erc-autojoin-channels)
+ ((remove-hook 'erc-after-connect-functions 'erc-autojoin-channels)
(remove-hook 'erc-nickserv-identified-hook 'erc-autojoin-after-ident)
(remove-hook 'erc-server-JOIN-functions 'erc-autojoin-add)
(remove-hook 'erc-server-PART-functions 'erc-autojoin-remove)))