* riece-signal.el (riece-clear-signal-slots): New function.
(set symbol (delq (car slots) (symbol-value symbol))))
(setq slots (cdr slots)))))
+(defun riece-clear-signal-slots ()
+ "Remove all functions from listeners list."
+ (fillarray riece-signal-slot-obarray 0))
+
(defun riece-emit-signal (signal-name &rest args)
"Emit SIGNAL."
(let ((symbol (intern-soft (symbol-name signal-name)
(require 'riece-compat)
(require 'riece-commands)
(require 'riece-addon)
+(require 'riece-signal)
(autoload 'derived-mode-class "derived")
(setq riece-buffer-list (cdr riece-buffer-list)))
(if riece-shrink-buffer-idle-timer
(riece-cancel-timer riece-shrink-buffer-idle-timer))
+ (riece-clear-signal-slots)
(setq riece-server nil
riece-current-channels nil
riece-current-channel nil