summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/games/wheelfortune.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/data/rbot/plugins/games/wheelfortune.rb b/data/rbot/plugins/games/wheelfortune.rb
index d965409f..d0178c07 100644
--- a/data/rbot/plugins/games/wheelfortune.rb
+++ b/data/rbot/plugins/games/wheelfortune.rb
@@ -221,7 +221,11 @@ class WheelOfFortune < Plugin
return
end
name = p[:name].to_s
- name = @bot.config['wheelfortune.game_name'] if name.empty?
+ if name.empty?
+ name = m.source.get_botdata("wheelfortune.game_name") || @bot.config['wheelfortune.game_name']
+ else
+ m.source.set_botdata("wheelfortune.game_name", name.dup)
+ 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)") % {
:name => game.name,