From 6f5528a63b44e610a3d25d7fe583399163d7d2da Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 12 Sep 2007 22:31:15 +0000 Subject: namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::* --- data/rbot/plugins/games/quiz.rb | 4 ++-- data/rbot/plugins/games/roulette.rb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'data/rbot/plugins/games') 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") -- cgit v1.2.3