summaryrefslogtreecommitdiff
path: root/python_client.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2014-02-15 11:17:10 +0100
committerTreeki <treeki@gmail.com>2014-02-15 11:17:10 +0100
commitf5c91243ce04b5fab96ebe8838e384b0356793e0 (patch)
treea218cbcb468f3b4a5473d657f4892e39147b45ec /python_client.py
parent848c96b0df5282a9089bd4259e3e6ae3620f3ec9 (diff)
downloadbounce4-f5c91243ce04b5fab96ebe8838e384b0356793e0.tar.gz
bounce4-f5c91243ce04b5fab96ebe8838e384b0356793e0.zip
add nick colours, fix a bug with RGB colours in richtext
Diffstat (limited to '')
-rw-r--r--python_client.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python_client.py b/python_client.py
index d30993c..9cfcd74 100644
--- a/python_client.py
+++ b/python_client.py
@@ -235,8 +235,9 @@ class WindowTab(QtWidgets.QWidget):
col = PRESET_COLOURS[bit1 >> 1]
pos += 1
elif (pos + 3) < l:
- bit2 = ord(msg[pos + 2])
- bit3 = ord(msg[pos + 3])
+ bit1 <<= 1
+ bit2 = ord(msg[pos + 2]) << 1
+ bit3 = ord(msg[pos + 3]) << 1
pos += 3
col = QtGui.QColor(bit1,bit2,bit3)