* riece-unread.el (riece-unread-after-switch-to-channel-function):
authorueno <ueno>
Thu, 24 Feb 2005 06:36:32 +0000 (06:36 +0000)
committerueno <ueno>
Thu, 24 Feb 2005 06:36:32 +0000 (06:36 +0000)
Clear riece-unread-channels case insensitively.

lisp/ChangeLog
lisp/riece-unread.el

index cd501f8..0ca347c 100644 (file)
@@ -1,5 +1,8 @@
 2005-02-24  Daiki Ueno  <ueno@unixuser.org>
 
+       * riece-unread.el (riece-unread-after-switch-to-channel-function):
+       Clear riece-unread-channels case insensitively.
+
        * riece-300.el (riece-handle-353-message): Use
        riece-identity-assoc to pick an entry from
        riece-353-message-alist.
index 7e950b8..e11a3f8 100644 (file)
@@ -88,8 +88,9 @@
 (defun riece-unread-after-switch-to-channel-function (last)
   (if riece-unread-enabled
       (setq riece-unread-channels
-           (delete riece-current-channel
-                   riece-unread-channels))))
+           (delq (car (riece-identity-member riece-current-channel
+                                             riece-unread-channels))
+                 riece-unread-channels))))
 
 (defun riece-unread-format-identity-for-channel-list-buffer (index identity)
   (if (and riece-unread-enabled