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.
This commit is contained in:
Alex Vidal 2011-07-22 07:09:30 -07:00
parent 039fa64a27
commit 110b038f5f
1 changed files with 1 additions and 1 deletions

View File

@ -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):