more small fixes, mostly around the playcard method

This commit is contained in:
James Scott 2012-12-16 15:34:54 -05:00
parent ee2612559e
commit e478766cd2
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ class Cah(callbacks.Plugin):
self._msg(recip, response % cah.question.text)
def _msgHandToPlayer(self, nick):
response = "Your cards: %s Please respond with @playcard <number> [number]"
response = "Your cards: %s Please respond with @playcard [channel if in pm] <number> [number]"
enumeratedHand = []
cah = self.game
for position, card in enumerate(cah.players[nick].card_list):
@ -159,7 +159,7 @@ class Cah(callbacks.Plugin):
cardlist = []
cards = cah.players[nick].card_list
for cardNum in cardNumbers:
cardlist.append(cards[cardNum])
cardlist.append(cards[int(cardNum)])
self.cardsPlayed[nick] = cardlist
if len(self.cardsPlayed) == len.self(players):
try: