]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/salut.rb
namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / salut.rb
index feff2dd63c9efe880d5acf0b3f2d0129cf143e99..2948b2f37506a94d4caf66451cf764d1a9c63954 100644 (file)
 # TODO:: *REMEMBER* to set @changed to true after edit or changes won't be saved\r
 \r
 class SalutPlugin < Plugin\r
-  BotConfig.register BotConfigBooleanValue.new('salut.all_languages',\r
+  Config.register Config::BooleanValue.new('salut.all_languages',\r
     :default => true, \r
     :desc => "Check for a salutation in all languages and not just in the one defined by core.language",\r
     :on_change => Proc.new {|bot, v| bot.plugins['salut'].reload}\r
   )\r
-  BotConfig.register BotConfigBooleanValue.new('salut.address_only',\r
+  Config.register Config::BooleanValue.new('salut.address_only',\r
     :default => true, \r
     :desc => "When set to true, the bot will only reply to salutations directed at him",\r
     :on_change => Proc.new {|bot, v| bot.plugins['salut'].reload}\r