Function: erc-cmd-AWAY

erc-cmd-AWAY is a byte-compiled function defined in erc.el.gz.

Signature

(erc-cmd-AWAY LINE)

Documentation

Mark the user as being away, the reason being indicated by LINE.

If no reason is given, unset away status.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-cmd-AWAY (line)
  "Mark the user as being away, the reason being indicated by LINE.
If no reason is given, unset away status."
  (when (string-match "^\\s-*\\(.*\\)$" line)
    (let ((reason (match-string 1 line)))
      (erc-log (format "cmd: AWAY: %s" reason))
      (erc-server-send
       (if (string= reason "")
           "AWAY"
         (concat "AWAY :" reason))))
    t))