From: Max F. <mf...@w3...> - 2003-04-16 23:04:09
|
[erc.el 1.509] After being frustrated at erc not telling me that the directory I specified in erc-log-channels-directory was wrong, causing it to not log anything and me to lose precious information, I changed erc-directory-writable-p to check more things: (defun erc-directory-writable-p (dir) "Determines whether the DIR is a writable directory. If it doesn't exist, create it." (unless (file-attributes dir) (make-directory dir)) (or (file-accessible-directory-p dir) (error "cannot access %s" dir))) Additionally I think logging code could be simplified by removing erc-log-channels and just use the value of erc-logs-channels-directory to find out whether we're logging or not. Cheers, Max. |