mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
ChannelLogger: Use open() instead of file().
This commit is contained in:
parent
e00b8b9903
commit
1e794d88d7
@ -148,7 +148,7 @@ class ChannelLogger(callbacks.Plugin):
|
||||
try:
|
||||
name = self.getLogName(channel)
|
||||
logDir = self.getLogDir(irc, channel)
|
||||
log = file(os.path.join(logDir, name), 'a')
|
||||
log = open(os.path.join(logDir, name), 'a')
|
||||
logs[channel] = log
|
||||
return log
|
||||
except IOError:
|
||||
|
Loading…
Reference in New Issue
Block a user