From e478766cd225abb094fc2a4a314e900933600e1e Mon Sep 17 00:00:00 2001 From: James Scott Date: Sun, 16 Dec 2012 15:34:54 -0500 Subject: [PATCH] more small fixes, mostly around the playcard method --- plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 2790ea3..f7165f6 100644 --- a/plugin.py +++ b/plugin.py @@ -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]" + response = "Your cards: %s Please respond with @playcard [channel if in pm] [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: