diff options
author | mathieui <mathieui@mathieui.net> | 2011-06-23 23:33:02 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-06-23 23:33:02 +0200 |
commit | 306abbf97487d50700c1e63ca2ecba021638cf0e (patch) | |
tree | 10cb95bf48c5200096b97d3f5539611f36195faa /src/windows.py | |
parent | 4e04c0bb7b4630e80829a621f01c3fd192331564 (diff) | |
download | poezio-306abbf97487d50700c1e63ca2ecba021638cf0e.tar.gz poezio-306abbf97487d50700c1e63ca2ecba021638cf0e.tar.bz2 poezio-306abbf97487d50700c1e63ca2ecba021638cf0e.tar.xz poezio-306abbf97487d50700c1e63ca2ecba021638cf0e.zip |
Fixes #1736
Diffstat (limited to 'src/windows.py')
-rw-r--r-- | src/windows.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/windows.py b/src/windows.py index eb6dde43..4fa358d4 100644 --- a/src/windows.py +++ b/src/windows.py @@ -534,7 +534,7 @@ class TextWin(Win): if None not in self.built_lines: self.built_lines.append(None) - def build_new_message(self, message): + def build_new_message(self, message, history=None): """ Take one message, build it and add it to the list Return the number of lines that are built for the given @@ -566,7 +566,10 @@ class TextWin(Win): else: txt = txt.replace('\t', ' ') # length of the time - offset = 9 + if history: + offset = 20 + else: + offset = 9 if theme.CHAR_TIME_RIGHT: offset += 1 if theme.CHAR_TIME_RIGHT: @@ -592,7 +595,10 @@ class TextWin(Win): else: color = None if first: - time = message.time.strftime("%H:%M:%S") + if history: + time = message.time.strftime("%Y-%m-%d %H:%M:%S") + else: + time = message.time.strftime("%H:%M:%S") nickname = nick else: time = None |