Skip to content

Commit

Permalink
Helper: fixed error in helper detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Paukstelis committed Aug 2, 2011
1 parent 4be305b commit 0041e52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion S2Wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def __init__(self):
self.waitForPlayer : re.compile ('.*MISSING: (\S+)'),
self.onDeath : re.compile('SGame: DUEL: (\d+) defeated (\d+)'),
self.onFighterRemoved : re.compile('SGame: REMOVED PLAYER (\d+) TEAM (\d+)'),
self.getServerVar : re.compile('SERVERVAR: (\S+) is (.*)'),
self.getServerVar : re.compile('^SERVERVAR: (\S+) is (.*)'),
self.getHashCheck : re.compile('Sv: HACKCHECK ClientNumber: (\d+), AccountID: (\d+), Hashcheck result: (\S+)'),
self.getMatchID : re.compile('SGame: Authenticated server successfully, stats will be recorded this game. Match ID: (/d+), Server ID: (/d+)'),
self.getEvent : re.compile('(?:SGame: |Sv: )*?EVENT (\S+) (\S+) on (\S+) by (\S+) at (\d+\.\d+) (\d+\.\d+) (\d+\.\d+)'),
Expand Down
3 changes: 2 additions & 1 deletion plugins/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def onConnect(self, *args, **kwargs):
'acctid' : 0,\
'name' : 'X',\
'active' : False,\
'helper' : False,\
'level' : 0})

def onDisconnect(self, *args, **kwargs):
Expand Down Expand Up @@ -103,7 +104,7 @@ def onAccountId(self, *args, **kwargs):
self.helperNotify(client, **kwargs)

for each in self.helperlist:
if client['name'].lower == each['name']:
if client['name'].lower() == each['name']:
client['helper'] = True

def onPhaseChange(self, *args, **kwargs):
Expand Down

0 comments on commit 0041e52

Please sign in to comment.