* riece.el (riece-dialogue-mode-map): Bind riece-command-change-layout.
[riece] / lisp / riece-unread.el
index d03024d..8f42ddc 100644 (file)
@@ -31,7 +31,8 @@
 
 ;;; Code:
 
-(eval-when-compile (require 'riece-message))
+(require 'riece-message)
+(require 'riece-commands)
 
 (defvar riece-unread-channels nil)
 
@@ -59,7 +60,8 @@
          (goto-char (point-min))
          (while (not (eobp))
            (if (looking-at "\\( ?[0-9]+:\\)\\([ !]\\)\\(.+\\)")
-               (let ((channel (match-string 3)))
+               (let ((channel (save-match-data
+                                (riece-parse-identity (match-string 3)))))
                  (replace-match
                   (concat "\\1"
                           (if (member channel riece-unread-channels)