* liece-window.el (liece-configure-windows): Set
authorbg66 <bg66>
Sun, 11 Aug 2002 12:02:53 +0000 (12:02 +0000)
committerbg66 <bg66>
Sun, 11 Aug 2002 12:02:53 +0000 (12:02 +0000)
`liece-channel-buffer' to nil when `liece-current-chat-partner' or
`liece-current-channel' is nil.
(Suggested by Kazushige Maeda <pff@softai.co.jp>.)

lisp/ChangeLog
lisp/liece-window.el

index 9b238d1..2ea63d6 100644 (file)
@@ -1,5 +1,10 @@
 2002-08-11  OHASHI Akira  <bg66@koka-in.org>
 
+       * liece-window.el (liece-configure-windows): Set
+       `liece-channel-buffer' to nil when `liece-current-chat-partner' or
+       `liece-current-channel' is nil.
+       (Suggested by Kazushige Maeda <pff@softai.co.jp>.)
+
        * liece-dcc.el (liece-dcc-dequeue-request): Do nothing when
        `liece-dcc-requests' is empty.
        (liece-command-dcc-accept): Ditto.
index 8720259..7a14138 100644 (file)
     (if (and (get 'liece-nick-buffer-mode 'hide)
             liece-nick-window-auto-hide)
        (setq liece-nick-buffer-mode nil))
-    (if (not (liece-channel-last
-             (if (eq liece-command-buffer-mode 'chat)
-                 liece-current-chat-partners
-               liece-current-channels)))
-       (setq liece-channel-buffer-mode nil))
+    (unless (if (eq liece-command-buffer-mode 'chat)
+               liece-current-chat-partner
+             liece-current-channel)
+      (setq liece-channel-buffer-mode nil))
     (setq situation
          `((channel-buffer-mode . ,liece-channel-buffer-mode)
            (nick-buffer-mode . ,liece-nick-buffer-mode)