(riece-update-status-indicators): Don't update
authorueno <ueno>
Tue, 27 May 2008 02:57:41 +0000 (02:57 +0000)
committerueno <ueno>
Tue, 27 May 2008 02:57:41 +0000 (02:57 +0000)
riece-user-indicator if riece-real-nickname is not fixed.

lisp/ChangeLog
lisp/riece-display.el

index 8871e6d..20c79ff 100644 (file)
@@ -1,5 +1,8 @@
 2008-05-27  Daiki Ueno  <ueno@unixuser.org>
 
+       * riece-display.el (riece-update-status-indicators): Don't update
+       riece-user-indicator if riece-real-nickname is not fixed.
+
        * COMPILE (riece-icons): Re-order filenames.
        * Makefile.am (EXTRA_DIST): Add new toolbar icons.
 
index 96c32ff..3cd8f72 100644 (file)
@@ -348,10 +348,13 @@ Local to the buffer in `riece-buffer-list'.")
                           (riece-user-get-operator riece-real-nickname))
                      "O"
                    "-")
-                 riece-user-indicator
-                 (riece-format-identity
-                  (riece-make-identity riece-real-nickname riece-server-name)
-                  t))))))
+                 )
+           (if riece-real-nickname
+               (setq riece-user-indicator
+                     (riece-format-identity
+                      (riece-make-identity riece-real-nickname
+                                           riece-server-name)
+                      t)))))))
   (walk-windows
    (lambda (window)
      (with-current-buffer (window-buffer window)