]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
wheelfortune: display round count on cancel
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 6 Dec 2007 23:46:45 +0000 (23:46 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 6 Dec 2007 23:46:45 +0000 (23:46 +0000)
data/rbot/plugins/games/wheelfortune.rb

index 301eaf13458b9c2f6a723ca08ed4254bae5b603a..fee5b7f96fae8b1c6cec1176652d6e1d87d0d9c9 100644 (file)
@@ -325,7 +325,9 @@ class WheelOfFortune < Plugin
   def do_cancel(ch)
     game = @games.delete(ch)
     chan = ch.to_s
-    @bot.say chan, _("Wheel-of-Fortune game cancelled after %{count} rounds. Partial score:")
+    @bot.say chan, _("Wheel-of-Fortune game cancelled after %{count} rounds. Partial score:") % {
+      :count => game.round
+    }
     score_table(chan, game)
   end