* riece-filter.el (riece-sentinel): Suppress status message when
authorDaiki Ueno <ueno@unixuser.org>
Tue, 26 Aug 2003 13:00:50 +0000 (13:00 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Tue, 26 Aug 2003 13:00:50 +0000 (13:00 +0000)
riece-debug is nil.

lisp/ChangeLog
lisp/riece-filter.el

index 30e444c..dd30d8d 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-26  Daiki Ueno  <ueno@unixuser.org>
+
+       * riece-filter.el (riece-sentinel): Suppress status message when
+       riece-debug is nil.
+
 2003-08-26  Daiki Ueno  <ueno@unixuser.org>
 
        * riece-highlight.el (riece-channel-list-mark-current-channel):
index fb8894d..6fb3b19 100644 (file)
        (setq riece-reconnect-with-password nil))
     (let ((server-name (with-current-buffer (process-buffer process)
                         riece-server-name)))
-      (if (and (process-id process)            ;not a network connection
-              (string-match "^exited abnormally with code \\([0-9]+\\)"
-                            status))
+      (if riece-debug
          (if (equal server-name "")
-             (message "Connection closed: %s" (match-string 1 status))
+             (message "Connection closed: %s"
+                      (substring status 0 (1- (length status))))
            (message "Connection to \"%s\" closed: %s"
-                    server-name (match-string 1 status)))
+                    server-name (substring status 0 (1- (length status)))))
        (if (equal server-name "")
-           (message "Connection closed: %s"
-                  (substring status 0 (1- (length status))))
-         (message "Connection to \"%s\" closed: %s"
-                  server-name (substring status 0 (1- (length status))))))
+           (message "Connection closed")
+         (message "Connection to \"%s\" closed" server-name)))
       (let ((channels riece-current-channels))
        (while channels
          (if (and (car channels)