bug#67209: [PATCH] /squery doesn't work in server buffer

Osmo Karppinen <[email protected]>
Newsgroups gmane.emacs.erc.general
Message-ID <[email protected]>
Tags: patch

Hello,

Here is patch for /squery bug descriped earlier posts. Setting
erc-cmd-SQUERY function property do-not-parse-args to true will
fix that bug.

Repository revision: c710bf48408aece9865eb07081ca93d905e3983d
Repository branch: master
System Description: Debian
0001-Fix-erc-cmd-SQUERY-bug-by-setting-property-do-not-pa.patch (text/x-diff, 770 B)
From c710bf48408aece9865eb07081ca93d905e3983d Mon Sep 17 00:00:00 2001
From: Osmo Karppinen <[email protected]>
Date: Fri, 17 Nov 2023 12:31:50 +0200
Subject: [PATCH] Fix erc-cmd-SQUERY bug by setting property do-not-parse-args
 to true.

---
 lisp/erc/erc.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index edcfcf085e6..ef6d3e483d3 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -4592,6 +4592,8 @@ The rest of LINE is the message to send."
 The rest of LINE is the message to send."
   (erc-message "SQUERY" line))
 
+(put 'erc-cmd-SQUERY 'do-not-parse-args t)
+
 (defun erc-cmd-NICK (nick)
   "Change current nickname to NICK."
   (erc-log (format "cmd: NICK: %s (erc-bad-nick: %S)" nick erc-bad-nick))
-- 
2.42.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.