]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Disabled sending URL info to the channel by default, as several people
authorAlexander Beisig <alexander.beisig@gmx.de>
Fri, 21 Jul 2006 22:06:39 +0000 (22:06 +0000)
committerAlexander Beisig <alexander.beisig@gmx.de>
Fri, 21 Jul 2006 22:06:39 +0000 (22:06 +0000)
found it quite annoying.  Can be reenabled with url.display_link_info

data/rbot/plugins/url.rb

index f5aa88e61e18c78baabc7977a268043a9d222261..5d42397867f3f7d4c707ef9d3cfaa5fe3c601dd0 100644 (file)
@@ -272,10 +272,10 @@ UNESCAPE_TABLE = {
 
 class UrlPlugin < Plugin
   BotConfig.register BotConfigIntegerValue.new('url.max_urls',
-    :default => 100, :validate => Proc.new{|v| v > 0},
+8    :default => 100, :validate => Proc.new{|v| v > 0},
     :desc => "Maximum number of urls to store. New urls replace oldest ones.")
   BotConfig.register BotConfigBooleanValue.new('url.display_link_info',
-    :default => true, 
+    :default => false, 
     :desc => "Get the title of any links pasted to the channel and display it (also tells if the link is broken or the site is down)")
   
   def initialize