* net/rcirc.el (rcirc-kill-buffer-hook): Flush logs.

This commit is contained in:
Giorgos Keramidas 2011-01-22 17:21:38 +01:00 committed by Deniz Dogan
parent acf151a815
commit 80094035af

View file

@ -1029,6 +1029,9 @@ If ALL is non-nil, update prompts in all IRC buffers."
(defun rcirc-kill-buffer-hook ()
"Part the channel when killing an rcirc buffer."
(when (eq major-mode 'rcirc-mode)
(when (and rcirc-log-flag
rcirc-log-directory)
(rcirc-log-write))
(rcirc-clean-up-buffer "Killed buffer")))
(defun rcirc-change-major-mode-hook ()