Let riece-command-open-server accept "".
authorDaiki Ueno <ueno@unixuser.org>
Tue, 31 Jul 2012 09:12:32 +0000 (18:12 +0900)
committerDaiki Ueno <ueno@unixuser.org>
Tue, 31 Jul 2012 09:12:32 +0000 (18:12 +0900)
lisp/ChangeLog
lisp/riece-commands.el

index fd0a46e..4e271be 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-31  Daiki Ueno  <ueno@unixuser.org>
+
+       * riece-commands.el (riece-command-open-server): Open the default
+       server if server-name is "".
+
 2012-04-25  Daiki Ueno  <ueno@unixuser.org>
 
        * riece-commands.el (riece-command-join): Allow multiple choices
 2012-04-25  Daiki Ueno  <ueno@unixuser.org>
 
        * riece-commands.el (riece-command-join): Allow multiple choices
index 4f74b45..aab2b7b 100644 (file)
@@ -778,7 +778,9 @@ If prefix argument ARG is non-nil, toggle frozen status."
   (if (riece-server-process server-name)
       (error "%s is already opened" server-name))
   (riece-open-server
   (if (riece-server-process server-name)
       (error "%s is already opened" server-name))
   (riece-open-server
-   (riece-server-name-to-server server-name)
+   (riece-server-name-to-server (if (equal server-name "")
+                                   riece-server
+                                 server-name))
    server-name))
 
 (defun riece-command-close-server (server-name &optional message)
    server-name))
 
 (defun riece-command-close-server (server-name &optional message)