]> git.eshelyaron.com Git - emacs.git/commitdiff
(rcirc-cmd-join): Improve argument/docstring consistency.
authorJuanma Barranquero <lekktu@gmail.com>
Thu, 2 Feb 2006 16:49:58 +0000 (16:49 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Thu, 2 Feb 2006 16:49:58 +0000 (16:49 +0000)
lisp/ChangeLog
lisp/net/rcirc.el

index d9feee95b4ed14f5919abc3f29794e251504f7fb..fb8f7713fe1cdb51137e8470a808ff10bb6c16b2 100644 (file)
@@ -52,6 +52,7 @@
        (rcirc-cmd-ignore, rcirc-browse-url, rcirc-url-regexp):
        Fix typos in docstrings.
        (rcirc-print): "?\ " -> "?\s".
+       (rcirc-cmd-join): Improve argument/docstring consistency.
 
 2006-02-01  Mark A. Hershberger  <mah@everybody.org>
 
index 44e3fa8c6eca5bd5549d1184747f49ecc61a50ff..2e512ae4e1924d7edf5a19d29446fd6816223c7a 100644 (file)
@@ -1375,14 +1375,14 @@ Also, clear the overlay arrow if the current buffer is now hidden."
     (when (not existing-buffer)
       (rcirc-cmd-whois nick))))
 
-(defun-rcirc-command join (args)
+(defun-rcirc-command join (channel)
   "Join CHANNEL."
   (interactive "sJoin channel: ")
-  (let* ((channel (car (split-string args)))
-         (buffer (rcirc-get-buffer-create process channel)))
+  (let ((buffer (rcirc-get-buffer-create process
+                                         (car (split-string channel)))))
     (when (not (eq (selected-window) (minibuffer-window)))
       (funcall rcirc-switch-to-buffer-function buffer))
-    (rcirc-send-string process (concat "JOIN " args))))
+    (rcirc-send-string process (concat "JOIN " channel))))
 
 (defun-rcirc-command part (channel)
   "Part CHANNEL."