diff --git a/plugins/Gameknot.py b/plugins/Gameknot.py
index cc15423db..6acd9ce9b 100644
--- a/plugins/Gameknot.py
+++ b/plugins/Gameknot.py
@@ -115,7 +115,7 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp):
_gkPlayer = re.compile(r"popd\('(Rating[^']+)'\).*?>([^<]+)<")
_gkRating = re.compile(r": (\d+)[^:]+:
(\d+)[^,]+, (\d+)[^,]+, (\d+)")
_gkGameTitle = re.compile(r"
(.*?)\s* \s*\(started")
- _gkWon = re.compile(r'(\S+)\s+won\s+\((\S+)\s+(\S+)\)')
+ _gkWon = re.compile(r'>(\S+)\s+won\s+\((\S+)\s+(\S+)\)')
def gameknotSnarfer(self, irc, msg, match):
r"http://(?:www\.)?gameknot.com/chess.pl\?bd=\d+(&r=\d+)?"
#debug.printf('Got a GK URL from %s' % msg.prefix)
@@ -140,6 +140,7 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp):
# Game is over.
m = self._gkWon.search(s)
(winner, loser, reason) = m.groups()
+ debug.printf((winner, loser, reason))
if winner == 'white':
toMove = '%s won, %s %s.' % (wName, bName, reason)
else: