]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
poll plugin: make 'start' keyword optional
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 1 Jul 2010 15:18:27 +0000 (17:18 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 1 Jul 2010 16:07:08 +0000 (18:07 +0200)
data/rbot/plugins/poll.rb

index c5027e42a4d76bccb485a7c8a70f09367ca78bf6..132af5e71bee8051ac490dc06c1455db6f09d2f8 100644 (file)
@@ -316,7 +316,7 @@ class PollPlugin < Plugin
 end
 
 plugin = PollPlugin.new
-plugin.map 'poll start *blob', :action => 'start'
 plugin.map 'poll list', :action => 'list'
 plugin.map 'poll info :id', :action => 'info'
 plugin.map 'poll vote :id :choice', :action => 'record_vote', :threaded => true
+plugin.map 'poll [start] *blob', :action => 'start'