+2004-08-15 Daiki Ueno <ueno@unixuser.org>
+
+ * riece-handle.el (riece-handle-nick-message): Remove nil from
+ channel buffers.
+ (riece-handle-quit-message): Ditto.
+ (riece-handle-kill-message): Ditto.
+
+ * riece-misc.el (riece-concat-server-name): Put 'riece-server-name
+ property on "(from XXX)".
+
2004-07-29 Daiki Ueno <ueno@unixuser.org>
* riece-menu.el: Do not support enable/disable addon since
(riece-naming-assert-rename old new)
(if (riece-identity-member old-identity riece-current-channels)
(setq channels (cons new channels)))
- (riece-insert-change (mapcar
- (lambda (channel)
- (riece-channel-buffer (riece-make-identity
- channel riece-server-name)))
- channels)
+ (riece-insert-change (delq nil (mapcar
+ (lambda (channel)
+ (riece-channel-buffer
+ (riece-make-identity
+ channel riece-server-name)))
+ channels))
(format "%s -> %s\n"
(riece-format-identity old-identity t)
(riece-format-identity new-identity t)))
(riece-naming-assert-part user (car pointer))
(setq pointer (cdr pointer)))
(let ((buffers
- (mapcar
- (lambda (channel)
- (riece-channel-buffer (riece-make-identity channel
- riece-server-name)))
- channels)))
+ (delq nil (mapcar
+ (lambda (channel)
+ (riece-channel-buffer (riece-make-identity
+ channel riece-server-name)))
+ channels))))
(riece-insert-change
buffers
(concat
(riece-naming-assert-part user (car pointer))
(setq pointer (cdr pointer)))
(let ((buffers
- (mapcar
- (lambda (channel)
- (riece-channel-buffer (riece-make-identity channel
- riece-server-name)))
- channels)))
+ (delq nil (mapcar
+ (lambda (channel)
+ (riece-channel-buffer (riece-make-identity
+ channel riece-server-name)))
+ channels))))
(riece-insert-change
buffers
(concat
(defun riece-concat-server-name (string)
(if (equal riece-server-name "")
string
- (concat string " (from " riece-server-name ")")))
+ (let ((server-name (concat " (from " riece-server-name ")")))
+ (put-text-property 0 (length server-name)
+ 'riece-server-name riece-server-name
+ server-name)
+ (concat string server-name))))
(defun riece-concat-user-status (status string)
(if status