diff options
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/quiz.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/data/rbot/plugins/quiz.rb b/data/rbot/plugins/quiz.rb index 2757c4a0..67cd15b8 100644 --- a/data/rbot/plugins/quiz.rb +++ b/data/rbot/plugins/quiz.rb @@ -101,6 +101,8 @@ class QuizPlugin < Plugin IO.foreach("#{@bot.botclass}/quiz/win_messages") { |line| @win_messages << line.chomp } else warning( "win_messages file not found!" ) + # Fill the array with a least one message or code accessing it would fail + @win_messages << "<who> guessed right! The answer was <answer>" end # TODO: Make this configurable, and add support for more than one file (there's a size limit in linux too ;) ) |