From a0f48c7dba32332c57e12cca4762ae689a284ec4 Mon Sep 17 00:00:00 2001 From: Dimitri Molenaars Date: Wed, 20 Mar 2013 15:25:19 +0100 Subject: [PATCH] Adding extra seperators for choice Signed-off-by: Dimitri Molenaars --- willie/modules/dice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/willie/modules/dice.py b/willie/modules/dice.py index ce8e5ec296..9d068152dc 100644 --- a/willie/modules/dice.py +++ b/willie/modules/dice.py @@ -97,7 +97,7 @@ def choose(willie, trigger): """ if not trigger.group(2): return willie.reply('I\'d choose an option, but you didn\'t give me any.') - choices = trigger.group(2).split('|') + choices = trigger.group(2).split('|').split('/').split('\\') pick = choice(choices) return willie.reply('Your options: %s. My choice: %s' % (', '.join(choices), pick)) choose.commands = ['choice', 'ch', 'choose']