diff options
author | Treeki <treeki@gmail.com> | 2014-02-15 11:17:10 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2014-02-15 11:17:10 +0100 |
commit | f5c91243ce04b5fab96ebe8838e384b0356793e0 (patch) | |
tree | a218cbcb468f3b4a5473d657f4892e39147b45ec /python_client.py | |
parent | 848c96b0df5282a9089bd4259e3e6ae3620f3ec9 (diff) | |
download | bounce4-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.py | 5 |
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) |