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

View File

@ -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