Set variable "uncompressed" in WeeChat decoded message when compression is off (using message as-is)

This commit is contained in:
Sebastien Helleu 2013-03-13 12:09:58 +01:00
parent 2a0b6adc57
commit 9587cb0afb
1 changed files with 2 additions and 0 deletions

View File

@ -287,6 +287,8 @@ class Protocol:
size_uncompressed = len(uncompressed) + 5
uncompressed = '%s%s%s' % (struct.pack('>i', size_uncompressed), struct.pack('b', 0), uncompressed)
self.data = uncompressed
else:
uncompressed = self.data[:]
# skip length and compression flag
self.data = self.data[5:]
# read id