GNU bug report logs -
#18250
24.3; ERC display commands in current buffer
Previous Next
Reported by: Kelvin White <kwhite <at> gnu.org>
Date: Tue, 12 Aug 2014 13:04:02 UTC
Severity: minor
Found in version 24.3
Done: Kelvin White <kwhite <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#18250: 24.3; ERC display commands in current buffer
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 18250 <at> debbugs.gnu.org.
--
18250: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18250
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
closed.
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
Currently ERC will insert irc commands into the current buffer. I find
this annoying for a couple of reasons and wanted some feedback on this
behavior before going further. IMO it unneccesarily clutters up the
buffer and in some cases contains sensitive information you may not
want others to see, and may potentially even be logged. For example,
if this was an /oper command or a command to identify to nickserv it
would contain a password, if logging was enabled then it would be
written in the logs. So, I came up with a simple patch...
=== modified file 'lisp/erc/erc.el'
--- lisp/erc/erc.el 2014-08-07 16:44:19 +0000
+++ lisp/erc/erc.el 2014-08-12 12:48:29 +0000
@@ -5377,8 +5377,9 @@
(or (and erc-flood-protect (erc-split-line line))
(list line))))
(split-string str "\n"))
- ;; Insert the prompt along with the command.
- (erc-display-command str)
+ ;; Don't insert commands in buffer
+ (unless (string-match "^/" str)
+ (erc-display-command str))
(erc-process-input-line (concat str "\n") t nil))
t)))))
...but by doing this I realized that the function
`erc-display-command' exists solely to display commands in the current
buffer. Completely removing the call to `erc-display-command' in `erc-send-input'
may be a better option. Anyone have any thoughts or suggestions?
This bug report was last modified 10 years and 6 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.