X-Git-Url: https://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=lisp%2Friece-filter.el;h=5c1b42b684c6101583b8ea3d17b283064f97c9fe;hp=64e917d9f7907deb9999173697d5ff2a692748b0;hb=6ba2b9c5a8125b926cae3d92663523f207da508e;hpb=4e7b6b2f4e23e9dfd7ed2dbbcedba6a27a45c8d4 diff --git a/lisp/riece-filter.el b/lisp/riece-filter.el index 64e917d..5c1b42b 100644 --- a/lisp/riece-filter.el +++ b/lisp/riece-filter.el @@ -28,7 +28,6 @@ (require 'riece-misc) (require 'riece-server) ;riece-close-server (require 'riece-identity) -(require 'riece-display) (defun riece-handle-numeric-reply (prefix number name string) (let ((base-number (* (/ number 100) 100)) @@ -49,7 +48,7 @@ (riece-decode-coding-string string)) (error (if riece-debug - (message "Error occurred in `%S': %S" function error))))))) + (message "Error in `%S': %S" function error))))))) (defun riece-default-handle-numeric-reply (client-prefix prefix number name string) @@ -75,19 +74,19 @@ (run-hook-with-args-until-success hook prefix string) (error (if riece-debug - (message "Error occurred in `%S': %S" hook error)) + (message "Error in `%S': %S" hook error)) nil)) (if function (condition-case error (funcall function prefix string) (error (if riece-debug - (message "Error occurred in `%S': %S" function error))))) + (message "Error in `%S': %S" function error))))) (condition-case error (run-hook-with-args-until-success after-hook prefix string) (error (if riece-debug - (message "Error occurred in `%S': %S" after-hook error))))))) + (message "Error in `%S': %S" after-hook error))))))) (defun riece-filter (process input) (save-excursion @@ -156,7 +155,10 @@ (riece-part-channel (car channels))) (setq channels (cdr channels)))) (riece-redisplay-buffers) - (riece-close-server-process process)))) + (riece-close-server-process process) + ;; If no server process is available, exit. + (unless riece-server-process-alist + (riece-exit))))) (provide 'riece-filter)