summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/room.py2
-rw-r--r--src/window.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/room.py b/src/room.py
index bcd302a8..8cd7a0f8 100644
--- a/src/room.py
+++ b/src/room.py
@@ -90,7 +90,7 @@ class Room(object):
for word in highlight_words:
if word.lower() in txt.lower() and word != '':
self.set_color_state(13)
- color = 3
+ color = 2
break
self.messages.append(Message(txt, time, nickname, user, color))
diff --git a/src/window.py b/src/window.py
index 267c0798..4c6b27bb 100644
--- a/src/window.py
+++ b/src/window.py
@@ -196,7 +196,9 @@ class TextWin(Win):
txt[:limit], message.color,
offset)
lines.append(l)
- txt = txt[limit+1:]
+ txt = txt[limit:]
+ if txt.startswith('\n'):
+ txt = txt[1:]
first = False
return lines[-len(messages):]# return only the needed number of lines