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/rathena.py | |
parent | 7008ad9cb7c1334ab43dc85b57b9f2b560b1dd19 (diff) | |
download | tools-11bbfe66b27221ba0a8acb47f68bf290d092b2f8.tar.gz tools-11bbfe66b27221ba0a8acb47f68bf290d092b2f8.tar.bz2 tools-11bbfe66b27221ba0a8acb47f68bf290d092b2f8.tar.xz tools-11bbfe66b27221ba0a8acb47f68bf290d092b2f8.zip |
servergreps: fix parsing out packets in hercules and other servers.
Diffstat (limited to 'servergreps/hercules/src/rathena.py')
-rwxr-xr-x | servergreps/hercules/src/rathena.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servergreps/hercules/src/rathena.py b/servergreps/hercules/src/rathena.py index c6019a4..05dccc8 100755 --- a/servergreps/hercules/src/rathena.py +++ b/servergreps/hercules/src/rathena.py @@ -30,7 +30,7 @@ class Rathena: 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("int cmde([ ]*)=([ ]*)0x(?P<packet>[0-9a-fA-F]+);") ourPacketre6 = re.compile( "(WFIFOW|WBUFW)([ ]*)[(]([ ]*)([\w>_-]+),([ ]*)" + |