diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-12 22:31:15 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-12 22:31:15 +0000 |
commit | 6f5528a63b44e610a3d25d7fe583399163d7d2da (patch) | |
tree | 0db7c1642d40bd68a85338f4cdbb87a03f5e7747 /data/rbot/plugins/games | |
parent | 8efdfd2651a720e0dc1681e716d0a23b0429e4fd (diff) |
namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*
Diffstat (limited to 'data/rbot/plugins/games')
-rw-r--r-- | data/rbot/plugins/games/quiz.rb | 4 | ||||
-rw-r--r-- | data/rbot/plugins/games/roulette.rb | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/data/rbot/plugins/games/quiz.rb b/data/rbot/plugins/games/quiz.rb index 5f7392da..37602fba 100644 --- a/data/rbot/plugins/games/quiz.rb +++ b/data/rbot/plugins/games/quiz.rb @@ -156,11 +156,11 @@ end # CLASS QuizPlugin ####################################################################### class QuizPlugin < Plugin - BotConfig.register BotConfigBooleanValue.new('quiz.dotted_nicks', + Config.register Config::BooleanValue.new('quiz.dotted_nicks', :default => true, :desc => "When true, nicks in the top X scores will be camouflaged to prevent IRC hilighting") - BotConfig.register BotConfigArrayValue.new('quiz.sources', + Config.register Config::ArrayValue.new('quiz.sources', :default => ['quiz.rbot'], :desc => "List of files and URLs that will be used to retrieve quiz questions") diff --git a/data/rbot/plugins/games/roulette.rb b/data/rbot/plugins/games/roulette.rb index 7c25a6cc..adf755fd 100644 --- a/data/rbot/plugins/games/roulette.rb +++ b/data/rbot/plugins/games/roulette.rb @@ -1,13 +1,13 @@ define_structure :RouletteHistory, :games, :shots, :deaths, :misses, :wins class RoulettePlugin < Plugin - BotConfig.register BotConfigBooleanValue.new('roulette.autospin', + Config.register Config::BooleanValue.new('roulette.autospin', :default => true, :desc => "Automatically spins the roulette at the butlast shot") - BotConfig.register BotConfigBooleanValue.new('roulette.kick', + Config.register Config::BooleanValue.new('roulette.kick', :default => false, :desc => "Kicks shot players from the channel") - BotConfig.register BotConfigBooleanValue.new('roulette.twice_in_a_row', + Config.register Config::BooleanValue.new('roulette.twice_in_a_row', :default => false, :desc => "Allow players to go twice in a row") |