Function: erc-message-target

erc-message-target is a byte-compiled function defined in erc.el.gz.

Signature

(erc-message-target MSG)

Documentation

Return the addressed target in MSG.

The addressed target is the string before the first colon in MSG.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-message-target (msg)
  "Return the addressed target in MSG.

The addressed target is the string before the first colon in MSG."
  (if (string-match "^\\([^: \n]*\\):" msg)
      (match-string 1 msg)
    nil))