Source

erc / erc-autoaway.el

Diff from to

erc-autoaway.el

 Related variables: `erc-public-away-p' and `erc-away-nickname'."
   ;; Enable:
   ((add-hook 'erc-send-completed-hook 'erc-autoaway-reset-idletime)
-   (add-hook 'erc-server-001-hook 'erc-autoaway-reset-idletime)
+   (add-hook 'erc-server-001-functions 'erc-autoaway-reset-idletime)
    (add-hook 'erc-timer-hook 'erc-autoaway-possibly-set-away)
    (when erc-autoaway-use-emacs-idle
      (erc-autoaway-reestablish-idletimer)))
   ;; Disable:
   ((remove-hook 'erc-send-completed-hook 'erc-autoaway-reset-idletime)
-   (remove-hook 'erc-server-001-hook 'erc-autoaway-reset-idletime)
+   (remove-hook 'erc-server-001-functions 'erc-autoaway-reset-idletime)
    (remove-hook 'erc-timer-hook 'erc-autoaway-possibly-set-away)
    (when erc-autoaway-idletimer
      (cancel-timer erc-autoaway-idletimer)