mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
ChannelLogger: Fix filename escaping.
This commit is contained in:
parent
af6052997c
commit
656222e341
@ -96,7 +96,7 @@ class ChannelLogger(callbacks.Plugin):
|
|||||||
|
|
||||||
def getLogName(self, network, channel):
|
def getLogName(self, network, channel):
|
||||||
if self.registryValue('rotateLogs', channel, network):
|
if self.registryValue('rotateLogs', channel, network):
|
||||||
return '%s.%s.log' % (channel, self.logNameTimestamp(network, channel))
|
name = '%s.%s.log' % (channel, self.logNameTimestamp(network, channel))
|
||||||
else:
|
else:
|
||||||
name = '%s.log' % channel
|
name = '%s.log' % channel
|
||||||
return utils.file.sanitizeName(name)
|
return utils.file.sanitizeName(name)
|
||||||
@ -108,7 +108,7 @@ class ChannelLogger(callbacks.Plugin):
|
|||||||
if self.registryValue('directories.network'):
|
if self.registryValue('directories.network'):
|
||||||
logDir = os.path.join(logDir, irc.network)
|
logDir = os.path.join(logDir, irc.network)
|
||||||
if self.registryValue('directories.channel'):
|
if self.registryValue('directories.channel'):
|
||||||
logDir = os.path.join(logDir, channel)
|
logDir = os.path.join(logDir, utils.file.sanitizeName(channel))
|
||||||
if self.registryValue('directories.timestamp'):
|
if self.registryValue('directories.timestamp'):
|
||||||
format = self.registryValue('directories.timestamp.format')
|
format = self.registryValue('directories.timestamp.format')
|
||||||
timeDir =time.strftime(format)
|
timeDir =time.strftime(format)
|
||||||
|
Loading…
Reference in New Issue
Block a user