Function: erc-log--call-when-logging-enabled-sans-module
erc-log--call-when-logging-enabled-sans-module is a byte-compiled
function defined in erc-log.el.gz.
Signature
(erc-log--call-when-logging-enabled-sans-module FN)
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-log.el.gz
;; This is a kludge to avoid littering erc-truncate.el with forward
;; declarations needed only for a corner-case compatibility check.
(defun erc-log--call-when-logging-enabled-sans-module (fn)
(when (and (erc-logging-enabled)
(not (or erc-log-mode (memq 'log erc-modules))))
(let ((dirfile (and (stringp erc-log-channels-directory)
erc-log-channels-directory)))
(funcall fn dirfile))))