Function: erc-match-directed-at-fool-p

erc-match-directed-at-fool-p is a byte-compiled function defined in erc-match.el.gz.

Signature

(erc-match-directed-at-fool-p MSG)

Documentation

Check whether MSG is directed at a fool.

In order to do this, every entry in erc-fools will be used. In any of the following situations, MSG is directed at an entry FOOL:

- MSG starts with "FOOL: " or "FOO, "
- MSG contains ", FOOL." (actually, "\\s. FOOL\\s.")

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-match.el.gz
(defun erc-match-directed-at-fool-p (msg)
  "Check whether MSG is directed at a fool.
In order to do this, every entry in `erc-fools' will be used.
In any of the following situations, MSG is directed at an entry FOOL:

- MSG starts with \"FOOL: \" or \"FOO, \"
- MSG contains \", FOOL.\" (actually, \"\\s. FOOL\\s.\")"
  (let ((fools-beg (mapcar (lambda (entry)
				 (concat "^" entry "[:,] "))
			   erc-fools))
	(fools-end (mapcar (lambda (entry)
				 (concat "\\s. " entry "\\s."))
			       erc-fools)))
    (or (erc-list-match fools-beg msg)
	(erc-list-match fools-end msg))))