mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +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)
|
wStats = '%s; W-%s, L-%s, D-%s' % (wRating, wWins, wLosses, wDraws)
|
||||||
bStats = '%s; W-%s, L-%s, D-%s' % (bRating, bWins, bLosses, bDraws)
|
bStats = '%s; W-%s, L-%s, D-%s' % (bRating, bWins, bLosses, bDraws)
|
||||||
irc.queueMsg(callbacks.reply(msg,
|
irc.queueMsg(callbacks.reply(msg,
|
||||||
'%s: %s (%s) vs. %s (%s); %s' % (
|
'%s: %s (%s) vs. %s (%s); %s' % \
|
||||||
gameTitle, wName, wStats, bName, bStats, toMove)))
|
(gameTitle, wName, wStats, bName, bStats, toMove),
|
||||||
|
prefixName=False))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
irc.queueMsg(callbacks.reply(msg,
|
irc.queueMsg(callbacks.reply(msg,
|
||||||
'That doesn\'t appear to be a proper Gameknot game.'))
|
'That doesn\'t appear to be a proper Gameknot game.'))
|
||||||
|
@ -41,6 +41,8 @@ class GameknotTestCase(PluginTestCase, PluginDocumentation):
|
|||||||
|
|
||||||
def testUrlSnarfer(self):
|
def testUrlSnarfer(self):
|
||||||
self.assertNotError('http://gameknot.com/chess.pl?bd=1019508')
|
self.assertNotError('http://gameknot.com/chess.pl?bd=1019508')
|
||||||
|
self.assertNotRegexp('http://gameknot.com/chess.pl?bd=1019508',
|
||||||
|
self.nick)
|
||||||
|
|
||||||
def testStatsUrlSnarfer(self):
|
def testStatsUrlSnarfer(self):
|
||||||
self.assertNotError('http://gameknot.com/stats.pl?ironchefchess')
|
self.assertNotError('http://gameknot.com/stats.pl?ironchefchess')
|
||||||
|
Loading…
Reference in New Issue
Block a user