Revert optionals cc generation test
This commit is contained in:
parent
df3448d001
commit
bd4353538a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue