X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fpoll.rb;h=814b2673ff67390a65dbb346d7475c10734672eb;hb=052217de30c59206d7025b582d4604557a747470;hp=4109321dc34400fc20503a71028f5fa8f294add7;hpb=7e196dbdcbe22e526cf2c63671ab63a017331a84;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/poll.rb b/data/rbot/plugins/poll.rb index 4109321d..814b2673 100644 --- a/data/rbot/plugins/poll.rb +++ b/data/rbot/plugins/poll.rb @@ -67,6 +67,7 @@ class ::Poll @voters[voter] = choice return _("recorded your vote for %{choice}: %{value}") % { + :choice => choice, :value => @answers[choice][:value] } else @@ -87,7 +88,7 @@ class ::Poll end def options - options = _("options are: ") + options = _("options are: ").dup @answers.each { |letter, info| options << "#{Bold}#{letter}#{NormalText}) #{info[:value]} " } @@ -201,7 +202,7 @@ class PollPlugin < Plugin command = _("poll vote %{id} ") % { :id => poll.id } - instructions = _("you have %{duration}, vote with ") + instructions = _("you have %{duration}, vote with ").dup instructions << _("%{priv} or %{public}") m.reply instructions % { :duration => "#{Bold}#{target_duration}#{Bold}",