From 0810db22fd308c9ef20e4fa287f1fcf33b5fcf26 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Wed, 22 Feb 2012 22:33:23 -0500 Subject: [PATCH] choose: fix no strip() on list object error --- modules/choose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/choose.py b/modules/choose.py index 63570ba..6a00a24 100644 --- a/modules/choose.py +++ b/modules/choose.py @@ -15,7 +15,7 @@ def choose(phenny, input): if len(c) == 1: c = re.findall(r'(\S+)', origterm) if len(c) == 1: - return phenny.reply("%s" % (c.strip())) + return phenny.reply("%s" % (c[0].strip())) fate = random.choice(c).strip() return phenny.reply("%s" % (fate)) choose.rule = (['choose'], r'(.*)')