From d317cee1d7578bab6e78f1d3cc8ea9058279175f Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 14 Feb 2008 01:54:17 +0100 Subject: wheelfortune plugin: suppress some warnings --- data/rbot/plugins/games/wheelfortune.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'data/rbot/plugins/games') 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), -- cgit v1.2.3