Finally removed all the known bugs.

This commit is contained in:
Jeremy Fincher 2003-08-18 07:10:17 +00:00
parent e05a0d18c9
commit 6560f9e7ae
2 changed files with 3 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp):
# Game is over.
m = self._gkWon.search(s)
winner = m.group(1)
m = self._gkReason.match(s)
m = self._gkReason.search(s)
if m:
reason = m.group(1)
else:

View File

@ -48,6 +48,8 @@ class GameknotTestCase(PluginTestCase):
def testSnarfer(self):
self.assertRegexp('http://gameknot.com/chess.pl?bd=907498',
'\x02ddipaolo\x02 won')
self.assertRegexp('http://gameknot.com/chess.pl?bd=907498',
'\x02chroniqueur\x02 resigned')
self.assertRegexp('http://gameknot.com/chess.pl?bd=955432',
'\x02ddipaolo\x02 lost')