Fixed.
authorueno <ueno>
Mon, 15 Aug 2005 00:17:08 +0000 (00:17 +0000)
committerueno <ueno>
Mon, 15 Aug 2005 00:17:08 +0000 (00:17 +0000)
lisp/riece-irc.el

index 66146de..d2c5a4d 100644 (file)
                           (if (rassq process riece-server-process-alist)
                               (delete-process process)))
                         process))
-  (message "Sending QUIT to server...")
-  (riece-process-send-string process
-                            (if message
-                                (format "QUIT :%s\r\n" message)
-                              "QUIT\r\n"))
-  (message "Sending QUIT to server...done"))
+  (let ((server-name (with-current-buffer (process-buffer process)
+                      riece-server-name)))
+    (if (equal server-name "")
+       (message "Sending QUIT...")
+      (message "Sending QUIT to \"%s\"..." server-name))
+    (riece-process-send-string process
+                              (if message
+                                  (format "QUIT :%s\r\n" message)
+                                "QUIT\r\n"))
+    (if (equal server-name "")
+       (message "Sending QUIT...done")
+      (message "Sending QUIT to \"%s\"...done"))))
 
 (provide 'riece-irc)