diff options
| author | F. Jason Park | 2022-03-21 19:21:57 -0700 |
|---|---|---|
| committer | F. Jason Park | 2022-06-30 15:19:53 -0700 |
| commit | a9d89d083ac5bf0b9fd5568d42e565aba0b6e13f (patch) | |
| tree | 90819c90c517a0a23c4428ba48cc884df58bc8ce /lisp/erc | |
| parent | 05902243431c877011a0bf6ce38c9230d0ef0721 (diff) | |
| download | emacs-a9d89d083ac5bf0b9fd5568d42e565aba0b6e13f.tar.gz emacs-a9d89d083ac5bf0b9fd5568d42e565aba0b6e13f.zip | |
Fix regression in erc-send-input-line
* lisp/erc/erc.el (erc-send-input-line): Restore remedial single-space
padding to ensure empty messages typed at the prompt without an
explicit /msg aren't rejected by the server. This behavior is only
noticeable when `erc-send-whitespace-lines' is active.
* test/lisp/erc/erc-tests.el (erc-process-input-line): Add trailing
newline to more correctly simulate how it's actually called by
`erc-send-input'. (Bug#50008)
Diffstat (limited to 'lisp/erc')
| -rw-r--r-- | lisp/erc/erc.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index 1c221a9cb13..971d3f426fc 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el | |||
| @@ -2992,6 +2992,8 @@ for special purposes (see erc-dcc.el).") | |||
| 2992 | 2992 | ||
| 2993 | (defun erc-send-input-line (target line &optional force) | 2993 | (defun erc-send-input-line (target line &optional force) |
| 2994 | "Send LINE to TARGET." | 2994 | "Send LINE to TARGET." |
| 2995 | (when (string= line "\n") | ||
| 2996 | (setq line " \n")) | ||
| 2995 | (erc-message "PRIVMSG" (concat target " " line) force)) | 2997 | (erc-message "PRIVMSG" (concat target " " line) force)) |
| 2996 | 2998 | ||
| 2997 | (defun erc-get-arglist (fun) | 2999 | (defun erc-get-arglist (fun) |