mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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:
|
try:
|
||||||
name = self.getLogName(channel)
|
name = self.getLogName(channel)
|
||||||
logDir = self.getLogDir(irc, 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
|
logs[channel] = log
|
||||||
return log
|
return log
|
||||||
except IOError:
|
except IOError:
|
||||||
|
Loading…
Reference in New Issue
Block a user