* riece-display.el (riece-join-channel): Parse non-nil elements in
authorueno <ueno>
Mon, 25 Aug 2003 16:06:58 +0000 (16:06 +0000)
committerueno <ueno>
Mon, 25 Aug 2003 16:06:58 +0000 (16:06 +0000)
riece-default-channel-binding.

lisp/ChangeLog
lisp/riece-display.el

index cbac16e..ffe5b95 100644 (file)
@@ -1,5 +1,10 @@
 2003-08-25  Daiki Ueno  <ueno@unixuser.org>
 
+       * riece-display.el (riece-join-channel): Parse non-nil elements in
+       riece-default-channel-binding.
+
+2003-08-25  Daiki Ueno  <ueno@unixuser.org>
+
        * riece-identity.el (riece-format-identity): Add 'riece-identity
        property to the resulting string.
 
index 9a2400e..810bc1a 100644 (file)
@@ -191,8 +191,13 @@ Local to the buffers.")
 (defun riece-join-channel (identity)
   (unless (riece-identity-member identity riece-current-channels)
     (setq riece-current-channels
-         (riece-identity-assign-binding identity riece-current-channels
-                                        riece-default-channel-binding))
+         (riece-identity-assign-binding
+          identity riece-current-channels
+          (mapcar
+           (lambda (channel)
+             (if channel
+                 (riece-parse-identity channel)))
+           riece-default-channel-binding)))
     (riece-channel-buffer-create identity)
     (with-current-buffer riece-channel-list-buffer
       (setq riece-redisplay-buffer t))))