mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-29 21:54:22 +01:00
Made the game snarfer not prefix the response with the the nick.
This commit is contained in:
parent
bb9c956eea
commit
23453eff6a
@ -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.'))
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user