From: Gergely N. <alg...@bo...> - 2001-12-15 18:47:58
|
Hi! While playing with (erc-send-paragraph), I noticed that even though ERC sends the paragraph to the server, it does not appear. My other problem is, that when erc-save-buffer-in-logs is called upon parting a channel, most of the buffer-local variables seem to be gone. For example, using the filename generating function at the end of this mail, when I part a channel on OPN, the logs get saved to ~/.erc/logs/2001/12/irc.openprojects.net/irc.openprojects.net.txt (as opposed to ~/.erc/logs/2001/12/irc.openprojects.net/#pfft.txt), so at least target is nil.. I'm looking at the sources, trying to figure out what to do, but wouldn't mind if someone else could fix it soonish :) The mentioned function is this: (defun mhp-generate-erc-log-file-name (buffer target nick server port) "Save logs in LOGDIR/year/month/server/target.txt." (let ((log-dir (concat erc-log-channels-directory (format-time-string "/%Y/%m/" (current-time)) server "/"))) (if (not (file-directory-p log-dir)) (make-directory log-dir t)) (concat log-dir (if target target server) ".txt"))) |