* net/rcirc.el (rcirc-kill-buffer-hook): Flush logs.
This commit is contained in:
parent
acf151a815
commit
80094035af
1 changed files with 3 additions and 0 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Add table
Reference in a new issue