Function: erc-dcc-auto-mask-p

erc-dcc-auto-mask-p is a byte-compiled function defined in erc-dcc.el.gz.

Signature

(erc-dcc-auto-mask-p SPEC)

Documentation

Match SPEC against erc-dcc-auto-masks.

SPEC is a full spec of a user in the form "nick!login@host", which is matched against all the regexps in erc-dcc-auto-masks. Return the matching regexp, or nil if none found.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-dcc.el.gz
(defun erc-dcc-auto-mask-p (spec)
  "Match SPEC against `erc-dcc-auto-masks'.
SPEC is a full spec of a user in the form \"nick!login@host\", which
is matched against all the regexps in `erc-dcc-auto-masks'.  Return
the matching regexp, or nil if none found."
  (let ((lst erc-dcc-auto-masks))
    (while (and lst
                (not (string-match (car lst) spec)))
      (setq lst (cdr lst)))
    (and lst (car lst))))