mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Fixed bug in seen regexp that would catch the old GK rating, too.
This commit is contained in:
parent
3f1296a858
commit
abbe99fd8c
@ -82,7 +82,7 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp, plugins.Toggleable):
|
||||
_gkrecord = re.compile(r'"#FFFF00">(\d+)[^"]+"#FFFF00">(\d+)[^"]+'\
|
||||
'"#FFFF00">(\d+)')
|
||||
_gkteam = re.compile(r'Team:(<.*?>)+(?P<name>.*?)</span>')
|
||||
_gkseen = re.compile(r'(seen on GK:\s+([^[]+)\s+|.*?is hiding.*?)')
|
||||
_gkseen = re.compile(r'(seen on GK:\s+([^[]+ago)|.*?is hiding.*?)')
|
||||
def getStats(self, name):
|
||||
gkprofile = 'http://www.gameknot.com/stats.pl?%s' % name
|
||||
try:
|
||||
|
@ -36,7 +36,7 @@ import utils
|
||||
class GameknotTestCase(PluginTestCase, PluginDocumentation):
|
||||
plugins = ('Gameknot',)
|
||||
def testGkstats(self):
|
||||
self.assertNotError('gkstats jemfinch')
|
||||
self.assertNotRegexp('gkstats jemfinch', 'Old GK rating')
|
||||
self.assertError('gkstats %s' % utils.mktemp())
|
||||
self.assertNotError('gkstats Strike')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user