* riece-unread.el (riece-unread-update-channel-list-buffer):
[riece] / lisp / riece-unread.el
index 21a8771..cb27d97 100644 (file)
@@ -31,7 +31,8 @@
 
 ;;; Code:
 
-(eval-when-compile (require 'riece-message))
+(require 'riece-message)
+(require 'riece-commands)
 
 (defvar riece-unread-channels nil)
 
              buffer-read-only)
          (goto-char (point-min))
          (while (not (eobp))
-           (if (looking-at "\\( ?[0-9]+:\\)\\([ !]\\)\\(.+\\)")
+           (if (looking-at "\\( ?[0-9]+:\\)\\(.\\)\\(.+\\)")
                (let ((channel (save-match-data
                                 (riece-parse-identity (match-string 3)))))
                  (replace-match
                   (concat "\\1"
                           (if (member channel riece-unread-channels)
                               "!"
-                            " ")
+                            "\\2")
                           "\\3"))))
            (forward-line))))))