'channel-list-changed signal.
+2006-01-14 Daiki Ueno <ueno@unixuser.org>
+
+ * riece-display.el (riece-part-channel): Emit
+ 'channel-list-changed signal.
+
2005-12-29 Daiki Ueno <ueno@unixuser.org>
* riece-alias.el (riece-alias-alternate-separator): Reverted the
(defun riece-part-channel (identity)
(let ((pointer (riece-identity-member identity riece-current-channels)))
- (if pointer
- (setcar pointer nil))
+ (unless pointer
+ (error "No such channel!"))
+ (setcar pointer nil)
(if (riece-identity-equal identity riece-current-channel)
- (riece-switch-to-nearest-channel pointer))
+ (riece-switch-to-nearest-channel pointer)
+ (riece-emit-signal 'channel-list-changed))
(funcall riece-buffer-dispose-function (riece-channel-buffer identity))))
(defun riece-redisplay-buffers (&optional force)