diff options
author | Matthias Hecker <mail@apoc.cc> | 2020-04-15 19:55:32 +0200 |
---|---|---|
committer | Matthias Hecker <mail@apoc.cc> | 2020-04-15 19:55:32 +0200 |
commit | 683311f7e1ca7d79cc6c2e8c19b6d9884d51e079 (patch) | |
tree | 7e6d50b6809f5a158848a88df7721749fbe549a4 /data/rbot/plugins/games | |
parent | f42fb620c71605f43e7e906e0eac3ef763952102 (diff) |
plugin(wheelfortune): remove botdata dependency
Diffstat (limited to 'data/rbot/plugins/games')
-rw-r--r-- | data/rbot/plugins/games/wheelfortune.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/games/wheelfortune.rb b/data/rbot/plugins/games/wheelfortune.rb index 7e818953..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)") % { |