[Pkg-telepathy-commits] [SCM] pymsn packaging branch, debian-patches, updated. db130b667b25b4a241122fc84d8b3f32c9e65a6d
Laurent Bigonville
bigon at bigon.be
Wed Jun 17 14:41:25 UTC 2009
The following commit has been merged in the debian-patches branch:
commit db130b667b25b4a241122fc84d8b3f32c9e65a6d
Author: Youness Alaoui <youness.alaoui at collabora.co.uk>
Date: Thu Jun 4 14:55:07 2009 -0400
Fix reception of msnp2p data from WLM 2009 users. Control flag check was too restrictive.. Thanks to Nicolò Chieffo for reporting it
diff --git a/pymsn/msnp2p/transport/TLP.py b/pymsn/msnp2p/transport/TLP.py
index be4ac18..393a024 100644
--- a/pymsn/msnp2p/transport/TLP.py
+++ b/pymsn/msnp2p/transport/TLP.py
@@ -102,6 +102,7 @@ class TLPFlag(object):
ERR = 0x80
KEY = 0x100
CRYPT = 0x200
+ UNKNOWN = 0x1000000
class MessageChunk(object):
@@ -114,7 +115,7 @@ class MessageChunk(object):
return str(self.header) + str(self.body)
def is_control_chunk(self):
- return self.header.flags & 0xFFFFFFCF
+ return self.header.flags & 0xCF
def is_ack_chunk(self):
return self.header.flags & (TLPFlag.NAK | TLPFlag.ACK)
--
pymsn packaging
More information about the Pkg-telepathy-commits
mailing list