mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-22 18:14:41 +01:00
ChannelLogger: Fix Python 2 compatibility.
This commit is contained in:
parent
066c6d87c8
commit
98076482b6
@ -162,8 +162,10 @@ class ChannelLogger(callbacks.Plugin):
|
|||||||
def timestamp(self, log):
|
def timestamp(self, log):
|
||||||
format = conf.supybot.log.timestampFormat()
|
format = conf.supybot.log.timestampFormat()
|
||||||
if format:
|
if format:
|
||||||
log.write(time.strftime(format))
|
string = time.strftime(format) + ' '
|
||||||
log.write(' ')
|
if sys.version_info[0] < 3:
|
||||||
|
string = string.decode()
|
||||||
|
log.write(string)
|
||||||
|
|
||||||
def normalizeChannel(self, irc, channel):
|
def normalizeChannel(self, irc, channel):
|
||||||
return ircutils.toLower(channel)
|
return ircutils.toLower(channel)
|
||||||
|
Loading…
Reference in New Issue
Block a user