diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-02-14 01:54:17 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-02-14 01:54:17 +0100 |
commit | d317cee1d7578bab6e78f1d3cc8ea9058279175f (patch) | |
tree | cf05d70e513a9f874ab5a65b3edf5c828a695ef3 /data/rbot/plugins/games | |
parent | e57295d1ff47aacc88257ee1a1f0c615d63d886b (diff) |
wheelfortune plugin: suppress some warnings
Diffstat (limited to 'data/rbot/plugins/games')
-rw-r--r-- | data/rbot/plugins/games/wheelfortune.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/data/rbot/plugins/games/wheelfortune.rb b/data/rbot/plugins/games/wheelfortune.rb index d873c9e4..37eb63b5 100644 --- a/data/rbot/plugins/games/wheelfortune.rb +++ b/data/rbot/plugins/games/wheelfortune.rb @@ -9,7 +9,8 @@ # Wheel-of-Fortune Question/Answer class WoFQA - attr_accessor :cat, :clue, :answer, :hint + attr_accessor :cat, :clue, :hint + attr_reader :answer def initialize(cat, clue, ans=nil) @cat = cat # category @clue = clue # clue phrase @@ -488,7 +489,7 @@ class WheelOfFortune < Plugin } score_table(m.channel, game) @games.delete(ch) - else :more + else m.reply _("%{bold}%{color}%{name}%{bold}, round %{count}%{nocolor} -- score so far:") % { :bold => Bold, :color => Irc.color(:green), |