]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
quiz: hint presentation fix for ruby 1.9+
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 20 Feb 2014 20:02:35 +0000 (21:02 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 29 May 2021 14:21:46 +0000 (16:21 +0200)
data/rbot/plugins/games/quiz.rb

index b139c66a2fad25eb2ec8c9c0e31900ce2f0307a3..9b657129adf59603cb538b2786d8031f14d4641a 100644 (file)
@@ -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