summaryrefslogtreecommitdiff
path: root/servergreps/hercules/src/hercules.py
diff options
context:
space:
mode:
Diffstat (limited to 'servergreps/hercules/src/hercules.py')
-rwxr-xr-xservergreps/hercules/src/hercules.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/servergreps/hercules/src/hercules.py b/servergreps/hercules/src/hercules.py
index c4fcf42..fdee363 100755
--- a/servergreps/hercules/src/hercules.py
+++ b/servergreps/hercules/src/hercules.py
@@ -58,8 +58,15 @@ class Hercules:
def addServerPacket(self, data):
if data in self.namedPackets:
for val in self.namedPackets[data]:
+ if int(val, 16) > 4096:
+ return
self.packetsSet.add(val)
else:
+ try:
+ if int(data, 16) > 4096:
+ return
+ except:
+ pass
self.packetsSet.add(data.lower())