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:
parent
039fa64a27
commit
110b038f5f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue