mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
ChannelLogger: Fix Python 2 compatibility (again).
This commit is contained in:
parent
98076482b6
commit
0c58ab2e98
@ -180,6 +180,8 @@ class ChannelLogger(callbacks.Plugin):
|
||||
self.timestamp(log)
|
||||
if self.registryValue('stripFormatting', channel):
|
||||
s = ircutils.stripFormatting(s)
|
||||
if sys.version_info[0] < 3:
|
||||
s = s.decode()
|
||||
log.write(s)
|
||||
if self.registryValue('flushImmediately'):
|
||||
log.flush()
|
||||
|
Loading…
Reference in New Issue
Block a user