Function: erc-networks-on-MOTD-end
erc-networks-on-MOTD-end is a byte-compiled function defined in
erc-networks.el.gz.
Signature
(erc-networks-on-MOTD-end PROC PARSED)
Documentation
Call on-connect functions with server PROC and PARSED message.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-networks.el.gz
(defun erc-networks-on-MOTD-end (proc parsed)
"Call on-connect functions with server PROC and PARSED message."
;; This should normally run before `erc-server-connected' is set.
;; However, bouncers and other proxies may interfere with that.
(when erc-server-connected
(unless (erc-buffer-filter (lambda ()
(and erc--target
(memq (erc--target-symbol erc--target)
erc-networks--bouncer-targets)))
proc)
(let ((m (concat "Unexpected state detected. If you've just issued an"
" /MOTD, please know that the command is bugged in ERC"
" 5.5 (Emacs 29) but will be fixed in the next release."
" Otherwise, please report this occurrence via"
(substitute-command-keys " \\[erc-bug]."))))
(erc-display-error-notice parsed m))))
;; For now, retain compatibility with erc-server-NNN-functions.
(or (erc-networks--ensure-announced proc parsed)
(erc-networks--set-name proc parsed)
(erc-networks--init-identity proc parsed)))