erc-buffer-filter

erc-buffer-filter is a compiled Lisp function in `erc.el'.

(erc-buffer-filter PREDICATE &optional PROC)

Return a list of `erc-mode' buffers matching certain criteria.
PREDICATE is a function executed with each buffer, if it returns t, that buffer
is considered a valid match.

PROC is either an `erc-server-process', identifying a certain
server connection, or nil which means all open connections.