Function: erc-autoaway-set-back

erc-autoaway-set-back is a byte-compiled function defined in erc-autoaway.el.gz.

Signature

(erc-autoaway-set-back &optional NONE-ALIVE-FUNC)

Documentation

Discard the away state globally.

NONE-ALIVE-FUNC is the function to call if no ERC processes are alive.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-autoaway.el.gz
(defun erc-autoaway-set-back (&optional none-alive-func)
  "Discard the away state globally.

NONE-ALIVE-FUNC is the function to call if no ERC processes are alive."
  (let ((server-buffer (erc-autoaway-some-server-buffer)))
    (if (and erc-autoaway-caused-away
	     (buffer-live-p server-buffer)
	     (with-current-buffer server-buffer erc-away))
	(erc-cmd-GAWAY "")
      (when none-alive-func (funcall none-alive-func)))))