From ffd383365ea26083e6db4dc2e889da7b2dfa79d6 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Thu, 14 Jun 2012 23:42:06 +0100 Subject: [PATCH] Fixed regex for vote --- modules/poll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/poll.js b/modules/poll.js index ee602eb..073181f 100644 --- a/modules/poll.js +++ b/modules/poll.js @@ -59,7 +59,7 @@ var poll = function(dbot) { } }; commands['~newpoll'].regex = [/~newpoll ([^ ]+) \[options=([^ ]+)\] (.+)/, 4]; - commands['~vote'].regex = [/~vote ([\d\w\s-]+?)[ ]?=[ ]?(.+)$/, 3]; + commands['~vote'].regex = [/~vote ([^ ]+) ([^ ]+)/, 3]; return { 'name': 'poll',