Made the game snarfer not prefix the response with the the nick.

This commit is contained in:
Jeremy Fincher 2003-09-23 20:26:25 +00:00
parent bb9c956eea
commit 23453eff6a
2 changed files with 5 additions and 2 deletions

View File

@ -188,8 +188,9 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp):
wStats = '%s; W-%s, L-%s, D-%s' % (wRating, wWins, wLosses, wDraws)
bStats = '%s; W-%s, L-%s, D-%s' % (bRating, bWins, bLosses, bDraws)
irc.queueMsg(callbacks.reply(msg,
'%s: %s (%s) vs. %s (%s); %s' % (
gameTitle, wName, wStats, bName, bStats, toMove)))
'%s: %s (%s) vs. %s (%s); %s' % \
(gameTitle, wName, wStats, bName, bStats, toMove),
prefixName=False))
except ValueError:
irc.queueMsg(callbacks.reply(msg,
'That doesn\'t appear to be a proper Gameknot game.'))

View File

@ -41,6 +41,8 @@ class GameknotTestCase(PluginTestCase, PluginDocumentation):
def testUrlSnarfer(self):
self.assertNotError('http://gameknot.com/chess.pl?bd=1019508')
self.assertNotRegexp('http://gameknot.com/chess.pl?bd=1019508',
self.nick)
def testStatsUrlSnarfer(self):
self.assertNotError('http://gameknot.com/stats.pl?ironchefchess')