Hide specified message types sent by lurkers
commit487a247f1d48faac2aa789baddd5ee5d7fa28d4a
authorJosh Feinstein <jlf@foxtail.org>
Mon, 20 Aug 2012 16:08:51 +0000 (20 09:08 -0700)
committerJosh Feinstein <jlf@foxtail.org>
Mon, 20 Aug 2012 16:08:51 +0000 (20 09:08 -0700)
tree19d7148692b9c9b5eaac8414903b8c1dc1206966
parenta32fbbcf262a71891032ef84f596bf5525f9124a
Hide specified message types sent by lurkers

* erc.el (erc-display-message): Abstract message hiding decision
to new function erc-hide-current-message-p.
(erc-lurker): New customization group.
(erc-lurker-state, erc-lurker-trim-nicks, erc-lurker-ignore-chars)
(erc-lurker-hide-list, erc-lurker-cleanup-interval)
(erc-lurker-threshold-time): New variables.
(erc-lurker-maybe-trim, erc-lurker-initialize, erc-lurker-cleanup)
(erc-hide-current-message-p, erc-canonicalize-server-name)
(erc-lurker-update-status, erc-lurker-p): New functions.  Together
they maintain state about which users have spoken in the last
erc-lurker-threshold-time, with all other users being considered
lurkers whose messages of types in erc-lurker-hide-list will not
be displayed by erc-display-message.
lisp/erc/ChangeLog
lisp/erc/erc.el