Add query command removed in 4ff1f66b12

* rcirc.el (query): Readd accidentally removed command
This commit is contained in:
Philip Kaludercic 2021-07-06 08:52:50 +02:00
parent 1d73575681
commit 77631c2a77
No known key found for this signature in database
GPG key ID: 181F5B95AE30B336

View file

@ -2480,6 +2480,17 @@ that, an interactive form can specified."
(read-string "Message: ")))
(rcirc-send-message process chan-or-nick message))
(rcirc-define-command query (nick)
"Open a private chat buffer to NICK."
(interactive (list (completing-read "Query nick: "
(with-rcirc-server-buffer
rcirc-nick-table))))
(let ((existing-buffer (rcirc-get-buffer process nick)))
(switch-to-buffer (or existing-buffer
(rcirc-get-buffer-create process nick)))
(when (not existing-buffer)
(rcirc-cmd-whois nick))))
(rcirc-define-command join (channels)
"Join CHANNELS.
CHANNELS is a comma- or space-separated string of channel names."