]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
server.ping_timeout now defaults to 30 seconds
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 26 Jul 2006 13:36:45 +0000 (13:36 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 26 Jul 2006 13:36:45 +0000 (13:36 +0000)
lib/rbot/ircbot.rb

index 1f62fc63386b405d279b415e9e2d8f85321f0a3d..4209aeee248bdee6d1b4eeff5d3dd66777a43966 100644 (file)
@@ -140,7 +140,7 @@ class IrcBot
       :desc => "(flood prevention) max bytes/seconds rate to send the server. Most ircd's have limits of 512 bytes/2 seconds",
       :on_change => Proc.new {|bot, v| bot.socket.byterate = v })
     BotConfig.register BotConfigIntegerValue.new('server.ping_timeout',
-      :default => 10, :validate => Proc.new{|v| v >= 0},
+      :default => 30, :validate => Proc.new{|v| v >= 0},
       :on_change => Proc.new {|bot, v| bot.start_server_pings},
       :desc => "reconnect if server doesn't respond to PING within this many seconds (set to 0 to disable)")