summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/text_buffer.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/poezio/text_buffer.py b/poezio/text_buffer.py
index f942c48e..bf0ac966 100644
--- a/poezio/text_buffer.py
+++ b/poezio/text_buffer.py
@@ -47,16 +47,12 @@ class Message:
txt[4:])
else:
me = False
+ str_time = time.strftime("%H:%M:%S")
if history:
txt = txt.replace(
'\x19o',
'\x19o\x19%s}' % dump_tuple(get_theme().COLOR_LOG_MSG))
str_time = time.strftime("%Y-%m-%d %H:%M:%S")
- else:
- if str_time is None:
- str_time = time.strftime("%H:%M:%S")
- else:
- str_time = str_time.strftime("%Y-%m-%d %H:%M:%S")
self.txt = txt.replace('\t', ' ') + '\x19o'
self.nick_color = nick_color