choose: fix no strip() on list object error

master
mutantmonkey 2012-02-22 22:33:23 -05:00
parent 9ffdc28102
commit 0810db22fd
1 changed files with 1 additions and 1 deletions

View File

@ -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'(.*)')