diff options
author | F. Jason Park <jp@neverwas.me> | 2023-11-17 13:26:00 -0800 |
---|---|---|
committer | F. Jason Park <jp@neverwas.me> | 2023-11-18 12:34:56 -0800 |
commit | cc7e008dce1df9d2472338b1fc3cc766166e9e55 (patch) | |
tree | b4b74a0f0275489a9a2a1fcbdbc5043cb2707a42 /lisp/erc/erc-backend.el | |
parent | 64174ae148d0d81f232d41ecaaa4de17692cf315 (diff) | |
download | emacs-cc7e008dce1df9d2472338b1fc3cc766166e9e55.tar.gz emacs-cc7e008dce1df9d2472338b1fc3cc766166e9e55.tar.bz2 emacs-cc7e008dce1df9d2472338b1fc3cc766166e9e55.zip |
Add test for erc-cmd-SQUERY
* lisp/erc/erc-backend.el (erc-message): Revise doc string.
* test/lisp/erc/erc-scenarios-base-misc-regressions.el (erc-cmd-MOTD):
Move test to another file specifically for slash commands.
* test/lisp/erc/erc-scenarios-misc-commands.el: New file.
* test/lisp/erc/resources/base/commands/motd.eld: Move file elsewhere.
* test/lisp/erc/resources/commands/motd.eld: "New" file, moved here
reusing the same Git blob from now deleted subdir base/commands.
* test/lisp/erc/resources/commands/squery.eld: New file. (Bug#67209)
Diffstat (limited to 'lisp/erc/erc-backend.el')
-rw-r--r-- | lisp/erc/erc-backend.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el index 9281c107d06..66ac9057d75 100644 --- a/lisp/erc/erc-backend.el +++ b/lisp/erc/erc-backend.el @@ -1284,8 +1284,10 @@ protection algorithm." nil #'erc-server-send-queue buffer))))))) (defun erc-message (message-command line &optional force) - "Send LINE to the server as a privmsg or a notice. -MESSAGE-COMMAND should be either \"PRIVMSG\" or \"NOTICE\". + "Send LINE, possibly expanding a target specifier beforehand. +Expect MESSAGE-COMMAND to be an IRC command with a single +positional target parameter followed by a trailing parameter. + If the target is \",\", the last person you've got a message from will be used. If the target is \".\", the last person you've sent a message to will be used." |