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,8 +111,10 @@ 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()
log.write(' ') if format:
log.write(time.strftime(format))
log.write(' ')
def doLog(self, channel, s): def doLog(self, channel, s):
log = self.getLog(channel) log = self.getLog(channel)