mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Finally removed all the known bugs.
This commit is contained in:
parent
e05a0d18c9
commit
6560f9e7ae
@ -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:
|
||||
|
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user