diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-12 18:57:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-12 18:58:38 +0300 |
commit | 11bbfe66b27221ba0a8acb47f68bf290d092b2f8 (patch) | |
tree | ccc50f3d8b41e04e953a8ebacd57864e6aae5c0a /servergreps/hercules/src/hercules.py | |
parent | 7008ad9cb7c1334ab43dc85b57b9f2b560b1dd19 (diff) | |
download | evol-tools-11bbfe66b27221ba0a8acb47f68bf290d092b2f8.tar.gz evol-tools-11bbfe66b27221ba0a8acb47f68bf290d092b2f8.tar.bz2 evol-tools-11bbfe66b27221ba0a8acb47f68bf290d092b2f8.tar.xz evol-tools-11bbfe66b27221ba0a8acb47f68bf290d092b2f8.zip |
servergreps: fix parsing out packets in hercules and other servers.
Diffstat (limited to 'servergreps/hercules/src/hercules.py')
-rwxr-xr-x | servergreps/hercules/src/hercules.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servergreps/hercules/src/hercules.py b/servergreps/hercules/src/hercules.py index f9999b1..e08e559 100755 --- a/servergreps/hercules/src/hercules.py +++ b/servergreps/hercules/src/hercules.py @@ -32,7 +32,7 @@ class Hercules: ourPacketre3 = re.compile( "(WFIFOW|WBUFW)([ ]*)[(]([ ]*)([\w>_-]+),([ ]*)" + "(?P<offset>0)([ ]*)[)]([ ]*)=([ ]*)(?P<packet>[0-9\w]+)([ ]*)[;]") - ourPacketre4 = re.compile("int cmd([ ]*)=([ ]*)0x(?P<packet>[0-9a-fA-F]+);") + ourPacketre4 = re.compile(" cmd([ ]*)=([ ]*)0x(?P<packet>[0-9a-fA-F]+);") ourPacketre5 = re.compile( "(WFIFOW|WBUFW)([ ]*)[(]([ ]*)([\w>_-]+),([ ]*)" + "(count[*]p_len)([ ]*)[)]([ ]*)=([ ]*)(?P<packet>[0-9\w]+)([ ]*)[;]") |