* liece-commands.el (liece-command-quit): Use `liece-close-server'.
[elisp/liece.git] / lisp / liece-commands.el
index 29fbedd..e68610d 100644 (file)
@@ -761,9 +761,7 @@ If prefix argument ARG is non-nil, leave signoff message."
           (if arg (read-string (_ "Signoff message: "))
             (or liece-signoff-message
                 (product-name (product-find 'liece-version))))))
-      (if quit-string
-         (liece-send "QUIT :%s" quit-string)
-       (liece-send "QUIT")))))
+      (liece-close-server quit-string))))
 
 (defun liece-command-generic (message)
   "Enter a generic IRC MESSAGE, which is sent to the server.