From 0c58ab2e989adfeee75e7d53e48ade7fb44ce21e Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 17 Feb 2014 19:24:41 +0000 Subject: [PATCH] ChannelLogger: Fix Python 2 compatibility (again). --- plugins/ChannelLogger/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/ChannelLogger/plugin.py b/plugins/ChannelLogger/plugin.py index f107999a4..ba81a60c8 100644 --- a/plugins/ChannelLogger/plugin.py +++ b/plugins/ChannelLogger/plugin.py @@ -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()