summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/games
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2014-02-20 21:02:35 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2021-05-29 16:21:46 +0200
commit61bf4d98909457f96e5c3f71c36687e42cab53fe (patch)
tree7c1509724d49ec1d7abb5e192f02754689f20cce /data/rbot/plugins/games
parentb8536b54ee9cd42b32d5ec68f52ffa72156acdbb (diff)
quiz: hint presentation fix for ruby 1.9+
Diffstat (limited to 'data/rbot/plugins/games')
-rw-r--r--data/rbot/plugins/games/quiz.rb4
1 files changed, 2 insertions, 2 deletions
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