mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
htmlToTexted the team.
This commit is contained in:
parent
e6f1b6e7ee
commit
03084065d6
@ -125,6 +125,7 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp):
|
||||
games = '%s active games' % games
|
||||
if 'Team:' in profile:
|
||||
team = self._gkteam.search(profile).group('name')
|
||||
team = utils.htmlToText(team)
|
||||
s = '%s (team: %s) is rated %s and has %s ' \
|
||||
'and a record of %s, %s, and %s ' \
|
||||
'(win/loss/draw percentage: %.2f%%/%.2f%%/%.2f%%). %s' % \
|
||||
|
@ -41,6 +41,9 @@ if network:
|
||||
self.assertError('gkstats %s' % utils.mktemp())
|
||||
self.assertNotError('gkstats Strike')
|
||||
|
||||
def testNoHtmlInTeam(self):
|
||||
self.assertNotRegexp('gkstats jeffuk', '9608')
|
||||
|
||||
def testUrlSnarfer(self):
|
||||
conf.supybot.plugins.Gameknot.gameSnarfer.setValue(True)
|
||||
self.assertNotError('http://gameknot.com/chess.pl?bd=1019508')
|
||||
|
Loading…
Reference in New Issue
Block a user