From: Damien E. <erc...@re...> - 2003-04-17 03:36:20
|
Max Froumentin <mf...@w3...> writes: > [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. Thanks Max - I've incorporated your suggestions. Regards, -- Damien Elmes |