diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-08-16 16:05:33 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-08-16 16:06:47 +0200 |
commit | c9074f4cab24c624ec1bb43d6b98880416205282 (patch) | |
tree | 633312e41dd283a65a356ae79872bc09694e5ffc | |
parent | e51cc13bc8cf22227580f09c3e03fc776549a4a9 (diff) |
Suppress warnings about unitialized variables
hangman: an unneeded letters accessor was defined
ircbot: restore initializations removed by previous commit
-rw-r--r-- | data/rbot/plugins/games/hangman.rb | 2 | ||||
-rw-r--r-- | lib/rbot/ircbot.rb | 5 |
2 files changed, 6 insertions, 1 deletions
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 |