added ability to chat and fixed bug with windows terminal

This commit is contained in:
Ammar Askar committed 2012-04-30 22:47:11 +05:00
1 parent 12bc7c3ab9
commit 96b0937e3e
3 files changed
+4 -5

No files matched your search

-2
View File
@@ -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