diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-06 15:34:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-06 15:34:58 +0300 |
commit | 315eb2fa121c0b2229a5b379cabc008f12705183 (patch) | |
tree | 37612029b6fa57f828ebd923f68b7863a2df7802 /servergreps/hercules/packets.py | |
parent | 3b08967f37e4ba4319f5797b6bd57f1481d8908c (diff) | |
download | evol-tools-315eb2fa121c0b2229a5b379cabc008f12705183.tar.gz evol-tools-315eb2fa121c0b2229a5b379cabc008f12705183.tar.bz2 evol-tools-315eb2fa121c0b2229a5b379cabc008f12705183.tar.xz evol-tools-315eb2fa121c0b2229a5b379cabc008f12705183.zip |
servergreps: ignore packets with id 0.
Diffstat (limited to 'servergreps/hercules/packets.py')
-rwxr-xr-x | servergreps/hercules/packets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servergreps/hercules/packets.py b/servergreps/hercules/packets.py index 349eafd..2d143e8 100755 --- a/servergreps/hercules/packets.py +++ b/servergreps/hercules/packets.py @@ -110,7 +110,7 @@ def collectManaPlusInPackets(fileName, packetVersion): m = protocolinre.search(line) if m is not None: packet = int(m.group("packet"), 16) - if packet > 0xb00: + if packet > 0xb00 or packet == 0: continue clientPacketsManaPlus[m.group("packet").lower()] = m.group("name") sizes[m.group("packet").lower()] = m.group("len") @@ -129,7 +129,7 @@ def collectManaPlusOutPackets(fileName, packetVersion): m = protocoloutre.search(line) if m is not None: packet = int(m.group("packet"), 16) - if packet > 0xb00: + if packet > 0xb00 or packet == 0: continue clientPacketsManaPlus[m.group("packet").lower()] = m.group("name") clientPacketsManaPlusClient[m.group("packet").lower()] = m.group("name") |