From 61bf4d98909457f96e5c3f71c36687e42cab53fe Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 20 Feb 2014 21:02:35 +0100 Subject: quiz: hint presentation fix for ruby 1.9+ --- data/rbot/plugins/games/quiz.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/rbot/plugins/games') diff --git a/data/rbot/plugins/games/quiz.rb b/data/rbot/plugins/games/quiz.rb index b139c66a..9b657129 100644 --- a/data/rbot/plugins/games/quiz.rb +++ b/data/rbot/plugins/games/quiz.rb @@ -507,7 +507,7 @@ class QuizPlugin < Plugin if q.question m.reply "#{Bold}#{Color}03Current question: #{Color}#{Bold}#{q.question}" - m.reply "Hint: #{q.hint}" if q.hinted + m.reply "Hint: #{q.hint.join}" if q.hinted return end @@ -630,7 +630,7 @@ class QuizPlugin < Plugin end while is_sep(q.answer_array[index]) and not q.all_seps q.hint[index] = q.answer_array[index] end - m.reply "Hint: #{q.hint}" + m.reply "Hint: #{q.hint.join}" q.hinted = true # FIXME 2.0 UTF-8 -- cgit v1.2.3