From d0552fdcf2fb9957d803e1bfd0d28bbc0c893af3 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 24 Jul 2004 05:46:35 +0000 Subject: [PATCH] Let's segregate our ChannelLogger logfiles. --- plugins/ChannelLogger.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/ChannelLogger.py b/plugins/ChannelLogger.py index 3df374687..44f1606fc 100644 --- a/plugins/ChannelLogger.py +++ b/plugins/ChannelLogger.py @@ -151,6 +151,9 @@ class ChannelLogger(callbacks.Privmsg): else: try: logDir = conf.supybot.directories.log() + logDir = os.path.join(logDir, self.name()) + if not os.path.exists(logDir): + os.makedirs(logDir) name = self.getLogName(channel) log = file(os.path.join(logDir, name), 'a') self.logs[channel] = log