+2001-06-09 OHASHI Akira <bg66@koka-in.org>
+
+ * liece-handle.el (liece-handle-privmsg-message): Don't compare when
+ `item' and `liece-current-chat-partner' are nil.
+
2000-10-12 Akira Ohashi <bg66@luck.gr.jp>
* liece-menu.el (liece-menu-ctcp-menu): Follow the CTCP command
(let ((item (if (eq liece-command-buffer-mode 'chat)
liece-current-chat-partner
liece-current-channel)))
- (unless (liece-channel-equal chnl item)
+ (unless (and item (liece-channel-equal chnl item))
(if (liece-channel-unread-p chnl)
(setq liece-channel-unread-list
(delete chnl liece-channel-unread-list)))
(run-hook-with-args 'liece-channel-unread-functions chnl)))
(if (and (liece-nick-equal chnl liece-real-nickname)
- (not (liece-nick-equal prefix liece-current-chat-partner)))
+ (if (and liece-current-chat-partner
+ (eq liece-command-buffer-mode 'chat))
+ (not (liece-nick-equal prefix liece-current-chat-partner))
+ t))
(liece-message (_ "A private message has arrived from %s")
prefix))))