]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/ri.rb
remove whitespace
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / ri.rb
index 1c4cc84d4edb9b0336d33c32cf0fecf012c40820..abecb6ec5a5966b57f52e0dd99593ae4d8715053 100644 (file)
@@ -16,7 +16,7 @@ class RiPlugin < Plugin
 
   RI_COMMAND = %w{ri -f simple -T}
 
-  BotConfig.register BotConfigIntegerValue.new('ri.max_length',
+  Config.register Config::IntegerValue.new('ri.max_length',
     :default => 512,
     :desc => "Maximum length of ri entry (in bytes) which is ok to be sent to channels or other users")
 
@@ -52,7 +52,7 @@ class RiPlugin < Plugin
       return m.reply("failed to execute ri")
     end
     ret = ret.gsub(/\t/, "  ").split(/\n/).join(" ").gsub(/\s\s+/, '  ')
-    
+
     if ret.length > @bot.config['ri.max_length']
       if !m.private? && tgt.to_s != m.sourcenick
         return m.reply('entry is too long to send to the channel or to some other user, use /msg to ask me about it')