From 110b038f5fc3182bebc04585549da0578ba80f3d Mon Sep 17 00:00:00 2001 From: Alex Vidal Date: Fri, 22 Jul 2011 07:09:30 -0700 Subject: [PATCH] Fixed path lowercasing bug in logging plugin. Previously, the entire path would be lowercased, which breaks instances where one of the parents of the working directory have capital letters. Now, it only lowercases the actual log filename, not the path. --- plugins/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/log.py b/plugins/log.py index cbdf33b..7a9d601 100644 --- a/plugins/log.py +++ b/plugins/log.py @@ -32,7 +32,7 @@ irc_color_re = re.compile(r'(\x03(\d+,\d+|\d)|[\x0f\x02\x16\x1f])') def get_log_filename(dir, server, chan): return os.path.join(dir, 'log', gmtime('%Y'), server, - gmtime('%%s.%m-%d.log') % chan).lower() + (gmtime('%%s.%m-%d.log') % chan).lower()) def gmtime(format):