X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Funicode.rb;h=957f5bff60c2029fbe084cba27fca31cbbe53682;hb=43475d2d90769a06df3b6b583683cfd474f6547e;hp=e05f87dd66a7d1414346e1d24a2c582676802a37;hpb=ad4317c01095675546e5d907a917168d82a0580e;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/unicode.rb b/data/rbot/plugins/unicode.rb index e05f87dd..957f5bff 100644 --- a/data/rbot/plugins/unicode.rb +++ b/data/rbot/plugins/unicode.rb @@ -18,12 +18,12 @@ require 'jcode' require 'iconv' class UnicodePlugin < Plugin - BotConfig.register BotConfigBooleanValue.new( + Config.register Config::BooleanValue.new( 'encoding.enable', :default => true, :desc => "Support for non-ascii charsets", :on_change => Proc.new { |bot, v| reconfigure_filter(bot) }) - BotConfig.register BotConfigArrayValue.new( + Config.register Config::ArrayValue.new( 'encoding.charsets', :default => ['utf-8', 'cp1252', 'iso-8859-15'], :desc => "Ordered list of iconv(3) charsets the bot should try", :on_change => Proc.new { |bot, v| reconfigure_filter(bot) })