Removed leading spaces if the timestamp is set to nothing.

This commit is contained in:
Jeremy Fincher 2004-03-24 23:05:28 +00:00
parent 5b03c6d5b7
commit 057563540f

View File

@ -111,7 +111,9 @@ class ChannelLogger(callbacks.Privmsg):
return StringIO() return StringIO()
def timestamp(self, log): def timestamp(self, log):
log.write(time.strftime(conf.supybot.log.timestampFormat())) format = conf.supybot.log.timestampFormat()
if format:
log.write(time.strftime(format))
log.write(' ') log.write(' ')
def doLog(self, channel, s): def doLog(self, channel, s):