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/salut.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/rbot/plugins/salut.rb') diff --git a/data/rbot/plugins/salut.rb b/data/rbot/plugins/salut.rb index feff2dd6..2948b2f3 100644 --- a/data/rbot/plugins/salut.rb +++ b/data/rbot/plugins/salut.rb @@ -14,12 +14,12 @@ # TODO:: *REMEMBER* to set @changed to true after edit or changes won't be saved class SalutPlugin < Plugin - BotConfig.register BotConfigBooleanValue.new('salut.all_languages', + Config.register Config::BooleanValue.new('salut.all_languages', :default => true, :desc => "Check for a salutation in all languages and not just in the one defined by core.language", :on_change => Proc.new {|bot, v| bot.plugins['salut'].reload} ) - BotConfig.register BotConfigBooleanValue.new('salut.address_only', + Config.register Config::BooleanValue.new('salut.address_only', :default => true, :desc => "When set to true, the bot will only reply to salutations directed at him", :on_change => Proc.new {|bot, v| bot.plugins['salut'].reload} -- cgit v1.2.3