IDENTITY is a member of riece-current-channels.
+2003-10-07 Daiki Ueno <ueno@unixuser.org>
+
+ * riece-display.el (riece-channel-buffer-name): Check whether
+ IDENTITY is a member of riece-current-channels.
+
2003-10-07 TAKAHASHI Kaoru <kaoru@kaisei.org>
* riece-commands.el (riece-command-kick): Fix completing-read
(force-mode-line-update t))
(defun riece-channel-buffer-name (identity)
- (format riece-channel-buffer-format (riece-format-identity identity)))
+ (let ((channels (riece-identity-member identity riece-current-channels)))
+ (if channels
+ (setq identity (car channels))
+ (if riece-debug
+ (message "%S is not a member of riece-current-channels" identity)))
+ (format riece-channel-buffer-format (riece-format-identity identity))))
(eval-when-compile
(autoload 'riece-channel-mode "riece"))