diff --git a/.pylintrc b/.pylintrc index f839a62..0b13832 100644 --- a/.pylintrc +++ b/.pylintrc @@ -287,7 +287,7 @@ max-attributes=7 max-bool-expr=5 # Maximum number of branch for function / method body. -max-branches=12 +max-branches=14 # Maximum number of locals for function / method body. max-locals=15 diff --git a/twnet_parser/packet.py b/twnet_parser/packet.py index 52898c8..eb190ac 100644 --- a/twnet_parser/packet.py +++ b/twnet_parser/packet.py @@ -247,6 +247,8 @@ class TwPacket(PrettyPrint): if is_connless: if self.header.flags.connless is None: self.header.flags.connless = True + if self.header.flags.compression: + payload = twnet_parser.huffman.compress(payload) return self.header.pack() + payload class PacketHeaderParser6():