Fixed.
[riece] / lisp / riece-unread.el
index 359f86b..e11a3f8 100644 (file)
@@ -58,7 +58,7 @@
   :group 'riece-highlight-faces)
 (defvar riece-channel-list-unread-face 'riece-channel-list-unread-face)
 
-(unless (find-face 'riece-modeline-unread-face)
+(unless (riece-facep 'riece-modeline-unread-face)
   (make-face 'riece-modeline-unread-face
             "Face used for displaying unread channels in modeline.")
   (if (featurep 'xemacs)
@@ -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