Create rcirc logging directory during init.

Not much else to say about it.
This commit is contained in:
Jean-Christophe Petkovich 2015-03-21 09:42:42 -04:00 committed by syl20bnr
parent 41efc0e263
commit e1c2c50932

View file

@ -86,6 +86,8 @@ which require an initialization must be listed explicitly in the list.")
(setq rcirc-log-flag t)
(defun rcirc-write-log (process sender response target text)
(when rcirc-log-directory
(when (not (file-directory-p rcirc-log-directory))
(make-directory rcirc-log-directory))
(with-temp-buffer
;; Sometimes TARGET is a buffer :-(
(when (bufferp target)