Function: erc-lurker-cleanup
erc-lurker-cleanup is a byte-compiled function defined in erc.el.gz.
Signature
(erc-lurker-cleanup)
Documentation
Remove all last PRIVMSG state older than erc-lurker-threshold-time.
This should be called regularly to avoid excessive resource consumption for long-lived IRC or Emacs sessions.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-lurker-cleanup ()
"Remove all last PRIVMSG state older than `erc-lurker-threshold-time'.
This should be called regularly to avoid excessive resource
consumption for long-lived IRC or Emacs sessions."
(maphash
(lambda (server hash)
(maphash
(lambda (nick last-PRIVMSG-time)
(when
(time-less-p erc-lurker-threshold-time
(time-since last-PRIVMSG-time))
(remhash nick hash)))
hash)
(if (zerop (hash-table-count hash))
(remhash server erc-lurker-state)))
erc-lurker-state))