X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fsalut.rb;fp=data%2Frbot%2Fplugins%2Fsalut.rb;h=2948b2f37506a94d4caf66451cf764d1a9c63954;hb=6f5528a63b44e610a3d25d7fe583399163d7d2da;hp=feff2dd63c9efe880d5acf0b3f2d0129cf143e99;hpb=8efdfd2651a720e0dc1681e716d0a23b0429e4fd;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git 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}