element of list is identity object.
(riece-identity-member-no-server): Ditto.
* riece-handle.el (riece-handle-nick-message): Follow the change
of riece-identity-member.
* riece-commands.el (riece-command-next-channel): Use
riece-identity-member instead of riece-identity-member-no-server.
(riece-command-previous-channel): Ditto.
2003-06-11 Daiki Ueno <ueno@unixuser.org>
+ * riece-identity.el (riece-identity-member): Assume that each
+ element of list is identity object.
+ (riece-identity-member-no-server): Ditto.
+
+ * riece-handle.el (riece-handle-nick-message): Follow the change
+ of riece-identity-member.
+
+ * riece-commands.el (riece-command-next-channel): Use
+ riece-identity-member instead of riece-identity-member-no-server.
+ (riece-command-previous-channel): Ditto.
+
+2003-06-11 Daiki Ueno <ueno@unixuser.org>
+
* riece-identity.el (riece-completing-read-identity): Remove nil
from channels before completing-read.
"Select the next channel."
(interactive)
(when (> (length riece-current-channels) 1)
- (let ((pointer (cdr (riece-identity-member-no-server
+ (let ((pointer (cdr (riece-identity-member
riece-current-channel
riece-current-channels))))
(while (and pointer
"Select the previous channel."
(interactive)
(when (> (length riece-current-channels) 1)
- (let ((pointer (riece-identity-member-no-server
+ (let ((pointer (riece-identity-member
riece-current-channel
riece-current-channels))
(start riece-current-channels)
(let* ((old (riece-prefix-nickname prefix))
(new (car (riece-split-parameters string)))
(channels (riece-user-get-channels old))
- (visible (riece-identity-member riece-current-channel channels)))
+ (visible (riece-identity-member
+ riece-current-channel
+ (mapcar (lambda (channel)
+ (riece-make-identity channel riece-server-name))
+ channels))))
(riece-naming-assert-rename old new)
(let ((pointer (riece-identity-member
(riece-make-identity old riece-server-name)
"Return non-nil if an identity ELT is an element of LIST."
(catch 'found
(while list
- (if (and (vectorp (car list))
- (riece-identity-equal (car list) elt))
+ (if (riece-identity-equal (car list) elt)
(throw 'found list)
(setq list (cdr list))))))
take server names into account."
(catch 'found
(while list
- (if (and (vectorp (car list))
- (riece-identity-equal-no-server (car list) elt))
+ (if (riece-identity-equal-no-server (car list) elt)
(throw 'found list)
(setq list (cdr list))))))