From c9074f4cab24c624ec1bb43d6b98880416205282 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 16 Aug 2009 16:05:33 +0200 Subject: [PATCH] Suppress warnings about unitialized variables hangman: an unneeded letters accessor was defined ircbot: restore initializations removed by previous commit --- data/rbot/plugins/games/hangman.rb | 2 +- lib/rbot/ircbot.rb | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/data/rbot/plugins/games/hangman.rb b/data/rbot/plugins/games/hangman.rb index c0a5ddc3..2a4bf338 100644 --- a/data/rbot/plugins/games/hangman.rb +++ b/data/rbot/plugins/games/hangman.rb @@ -63,7 +63,7 @@ class Hangman end class Hangman - attr_reader :misses, :guesses, :word, :letters, :scores + attr_reader :misses, :guesses, :word, :scores STAGES = [' (x_x) ', ' (;_;) ', ' (>_<) ', ' (-_-) ', ' (o_~) ', ' (^_^) ', '\(^o^)/'] HEALTH = STAGES.size-1 diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 6c8d6332..8b4dbaeb 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -468,6 +468,11 @@ class Bot exit 2 end + # Time at which the last PING was sent + @last_ping = nil + # Time at which the last line was RECV'd from the server + @last_rec = nil + @startup_time = Time.new begin -- 2.39.5