Revert optionals cc generation test

This commit is contained in:
ChillerDragon 2023-04-07 16:09:27 +02:00
parent df3448d001
commit bd4353538a

View file

@ -3,7 +3,7 @@
from twnet_parser.pretty_print import PrettyPrint
from twnet_parser.packer import Unpacker
from twnet_parser.chunk_header import ChunkHeader
from twnet_parser.packer import SANITIZE_CC, pack_int, pack_str
from twnet_parser.packer import pack_int, pack_str
class MsgInfo(PrettyPrint):
def __init__(
@ -26,7 +26,7 @@ class MsgInfo(PrettyPrint):
def unpack(self, data: bytes) -> bool:
unpacker = Unpacker(data)
self.version = unpacker.get_str()
self.password = unpacker.get_str(SANITIZE_CC) # TODO: optionals
self.password = unpacker.get_str() # TODO: optionals
self.client_version = unpacker.get_int() # TODO: optionals
return True