From b0db99d951fc28268fd0c11f65a4de660fb8b8ef Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 1 Feb 2007 16:34:55 +0000 Subject: Previous commit also implemented quiz autoask delay, but I had forgotten to log it. Log it, and take the chance to beautify some comments --- data/rbot/plugins/quiz.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'data') diff --git a/data/rbot/plugins/quiz.rb b/data/rbot/plugins/quiz.rb index 8e1e7a54..0d1d9ee6 100644 --- a/data/rbot/plugins/quiz.rb +++ b/data/rbot/plugins/quiz.rb @@ -7,12 +7,14 @@ # (c) 2006 Giuseppe Bilotta # Licensed under GPL V2. -# FIXME interesting fact: n the Quiz class, @registry.has_key? seems to be case -# insensitive! Although this is all right for us, this leads to rank vs -# registry mismatches! So we have to make the @rank_table comparisons case +# FIXME interesting fact: in the Quiz class, @registry.has_key? seems to be +# case insensitive. Although this is all right for us, this leads to rank vs +# registry mismatches. So we have to make the @rank_table comparisons case # insensitive as well. For the moment, redefine everything to downcase before -# matching the nick. TODO define a class for the rank table. We might also need it -# for scoring in other games. +# matching the nick. +# +# TODO define a class for the rank table. We might also need it for scoring in +# other games. # Class for storing question/answer pairs QuizBundle = Struct.new( "QuizBundle", :question, :answer ) -- cgit v1.2.3