mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05: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)
|
self.timestamp(log)
|
||||||
if self.registryValue('stripFormatting', channel):
|
if self.registryValue('stripFormatting', channel):
|
||||||
s = ircutils.stripFormatting(s)
|
s = ircutils.stripFormatting(s)
|
||||||
|
if sys.version_info[0] < 3:
|
||||||
|
s = s.decode()
|
||||||
log.write(s)
|
log.write(s)
|
||||||
if self.registryValue('flushImmediately'):
|
if self.registryValue('flushImmediately'):
|
||||||
log.flush()
|
log.flush()
|
||||||
|
Loading…
Reference in New Issue
Block a user