erc-occur
erc-occur is an interactive compiled Lisp function in `erc-goodies.el
'.
(erc-occur STRING &optional PROC)
Search for STRING in all buffers related to current server.
If called interactively and prefix argument is given, search on all connected
servers. If called from a program, PROC specifies the server process.