Create rcirc logging directory during init.
Not much else to say about it.
This commit is contained in:
parent
41efc0e263
commit
e1c2c50932
|
@ -86,6 +86,8 @@ which require an initialization must be listed explicitly in the list.")
|
||||||
(setq rcirc-log-flag t)
|
(setq rcirc-log-flag t)
|
||||||
(defun rcirc-write-log (process sender response target text)
|
(defun rcirc-write-log (process sender response target text)
|
||||||
(when rcirc-log-directory
|
(when rcirc-log-directory
|
||||||
|
(when (not (file-directory-p rcirc-log-directory))
|
||||||
|
(make-directory rcirc-log-directory))
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
;; Sometimes TARGET is a buffer :-(
|
;; Sometimes TARGET is a buffer :-(
|
||||||
(when (bufferp target)
|
(when (bufferp target)
|
||||||
|
|
Loading…
Reference in a new issue