From: ueno Date: Mon, 15 Aug 2005 00:17:08 +0000 (+0000) Subject: Fixed. X-Git-Tag: channel-coding-branchpoint~96 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=27d39c3952ee5b0a8f8ad6afd1603ec95706ba44;p=elisp%2Friece.git Fixed. --- diff --git a/lisp/riece-irc.el b/lisp/riece-irc.el index 66146de..d2c5a4d 100644 --- a/lisp/riece-irc.el +++ b/lisp/riece-irc.el @@ -96,12 +96,18 @@ (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)