added ability to chat and fixed bug with windows terminal
This commit is contained in:
1 parent
12bc7c3ab9
commit
96b0937e3e
3 files changed
+4
-5
No files matched your search
@@ -709,9 +709,7 @@ def handleFA(FileObject):
|
||||
}
|
||||
|
||||
def handleFF(FileObject):
|
||||
print "Parsing disconnect packet"
|
||||
length = struct.unpack('!h', FileObject.read(2))[0] * 2
|
||||
print "Length of string will be " + str(length)
|
||||
Reason = FileObject.read(length)
|
||||
Reason = Reason.decode("utf-16be", 'strict')
|
||||
print Reason
|
||||
|
||||
Reference in new issue
Block a user