Set variable "uncompressed" in WeeChat decoded message when compression is off (using message as-is)
This commit is contained in:
parent
2a0b6adc57
commit
9587cb0afb
@ -287,6 +287,8 @@ class Protocol:
|
|||||||
size_uncompressed = len(uncompressed) + 5
|
size_uncompressed = len(uncompressed) + 5
|
||||||
uncompressed = '%s%s%s' % (struct.pack('>i', size_uncompressed), struct.pack('b', 0), uncompressed)
|
uncompressed = '%s%s%s' % (struct.pack('>i', size_uncompressed), struct.pack('b', 0), uncompressed)
|
||||||
self.data = uncompressed
|
self.data = uncompressed
|
||||||
|
else:
|
||||||
|
uncompressed = self.data[:]
|
||||||
# skip length and compression flag
|
# skip length and compression flag
|
||||||
self.data = self.data[5:]
|
self.data = self.data[5:]
|
||||||
# read id
|
# read id
|
||||||
|
Loading…
Reference in New Issue
Block a user