summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-16 20:49:30 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-16 20:49:30 +0000
commitfc70a59fc9ac1750071537f56af5466e8cd9ce9e (patch)
treeeb3f0f7f65ebc46dfe4c546aef792083d31f250f
parentac4bae6db135bb64bf6cafcb5bb1819a9f546b1c (diff)
quiz plugin: sometimes cmd_hint was not busting even when it should have
-rw-r--r--data/rbot/plugins/quiz.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/data/rbot/plugins/quiz.rb b/data/rbot/plugins/quiz.rb
index 65a52b91..cd835eb0 100644
--- a/data/rbot/plugins/quiz.rb
+++ b/data/rbot/plugins/quiz.rb
@@ -550,6 +550,8 @@ class QuizPlugin < Plugin
when 1..1000 then 1
end
+ debug "Hintrange before: #{q.hintrange.inspect}"
+
# FIXME 2.0 UTF-8
num_chars.times do
begin
@@ -561,8 +563,10 @@ class QuizPlugin < Plugin
m.reply "Hint: #{q.hint}"
q.hinted = true
+ debug "Hintrange before: #{q.hintrange.inspect}"
+
# FIXME 2.0 UTF-8
- if q.hintrange.length == 0
+ if q.hint == q.answer_array
m.reply "#{Bold}#{Color}04BUST!#{Color}#{Bold} This round is over. #{Color}04Minus one point for #{nick}#{Color}."
stats = nil