Fix TOPIC command
authorPhilip Kaludercic <philipk@posteo.net>
Tue, 27 Jul 2021 08:08:06 +0000 (10:08 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Tue, 27 Jul 2021 08:08:06 +0000 (10:08 +0200)
* rcirc.el (topic): Add target argument.

lisp/net/rcirc.el

index 3c7ccedcedaea7aecb5e457297d49454b0f8d619..60751c14e2b5d0efd008215f53bc3bc5de137459 100644 (file)
@@ -2562,8 +2562,8 @@ With a prefix arg, prompt for new topic."
   (interactive (list (and current-prefix-arg
                           (read-string "List names in channel: "))))
   (if (> (length topic) 0)
-      (rcirc-send-string process "TOPIC" : topic)
-    (rcirc-send-string process "TOPIC")))
+      (rcirc-send-string process "TOPIC" target : topic)
+    (rcirc-send-string process "TOPIC" target)))
 
 (rcirc-define-command whois (nick)
   "Request information from server about NICK."