New ERC option to avoid sending accidentally-pasted text to the server.
authorEric Hanchrow <eric.hanchrow@gmail.com>
Fri, 30 Nov 2012 04:18:22 +0000 (12:18 +0800)
committerChong Yidong <cyd@gnu.org>
Fri, 30 Nov 2012 04:18:22 +0000 (12:18 +0800)
commit21859ebcafcda497a086a9db4701f0406db599ef
treed2ab8cdb9a0a16903af05e92cbbfd8373151f0f2
parentcc37e70f6699cbadb1a8f5467e8dc9fcea986aa1
New ERC option to avoid sending accidentally-pasted text to the server.

* erc.el (erc-last-input-time): New variable.
(erc-accidental-paste-threshold-seconds): New option to avoid
sending accidentally-pasted text to the server.
(erc-send-current-line): Use it.

Also,

* erc.el (erc-lurker-cleanup, erc-lurker-p): Use float-time.

Fixes: debbugs:11592
etc/NEWS
lisp/erc/ChangeLog
lisp/erc/erc.el