X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fgames%2Fwheelfortune.rb;h=20213e5d6c674a0808934e7eaf3a6d084397eb50;hb=8b811d21babf8f9e5a10a953b595d55ebd08820d;hp=4c1a48f06fc1f58423a6f9ea84badad3a0aa25cb;hpb=5f0ac4c14243631b51ffdfca4e705843bc659726;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/games/wheelfortune.rb b/data/rbot/plugins/games/wheelfortune.rb index 4c1a48f0..20213e5d 100644 --- a/data/rbot/plugins/games/wheelfortune.rb +++ b/data/rbot/plugins/games/wheelfortune.rb @@ -269,9 +269,9 @@ class WheelOfFortune < Plugin end name = p[:name].to_s if name.empty? - name = m.source.get_botdata("wheelfortune.game_name") || @bot.config['wheelfortune.game_name'] + name = @registry["game_name_#{m.source.to_s}"] || @bot.config['wheelfortune.game_name'] else - m.source.set_botdata("wheelfortune.game_name", name.dup) + @registry["game_name_#{m.source.to_s}"] = name end @games[ch] = game = WoFGame.new(name, m.botuser, p[:single], p[:max]) @bot.say chan, _("%{who} just created a new %{name} game to %{max} points (%{single} per question, %{price} per vowel)") % { @@ -476,9 +476,7 @@ class WheelOfFortune < Plugin # m.reply "STUPID! YOU SO STUPID!" return when *game.must_buy - m.nickreply _("You must buy the %{vowel}") % { - :vowel => check - } + m.reply _("You must buy the %{vowel}") % {:vowel => check}, :nick => true when :wrong return when Numeric, :missing