diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-26 13:36:45 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-26 13:36:45 +0000 |
commit | 7cd9be2587b25a8f2db06d8d933fcd3e20be5d06 (patch) | |
tree | 285f65c8aee45f04b4bf13b6fd9462aafd995a88 /lib/rbot | |
parent | 066e89f089789753dd73e5a03e8b64e079f936ff (diff) |
server.ping_timeout now defaults to 30 seconds
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/ircbot.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 1f62fc63..4209aeee 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -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)") |