summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-01-07 13:09:59 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-01-07 13:09:59 +0000
commitd500e727e027b04a3542237bbe9c4c75489427ad (patch)
treee485a46856e36b90a19cf361b652e15175ad25fb /lib/rbot
parent6e0297efd99e34609d6895089e730ce9177c8655 (diff)
[574] still had a stupid typo
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/ircbot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index b49cb0a4..470bb522 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -936,7 +936,7 @@ class IrcBot
else
# @last_ping was not reset by a pong, so we are
# in ping timeout: reconnect
- diff = Time.now - @last.ping
+ diff = Time.now - @last_ping
debug "no PONG from server in #{diff} seconds, reconnecting"
# the actual reconnect is handled in the main loop:
raise TimeoutError, "no PONG from server in #{diff} seconds"