From 86c7392e11d95dac44924778d45284d976b42a79 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 11 May 2009 16:20:18 +0200 Subject: quiz plugin: simplify local file loading --- data/rbot/plugins/games/quiz.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/rbot/plugins/games/quiz.rb b/data/rbot/plugins/games/quiz.rb index ca2abf47..aaac24fa 100644 --- a/data/rbot/plugins/games/quiz.rb +++ b/data/rbot/plugins/games/quiz.rb @@ -218,8 +218,7 @@ class QuizPlugin < Plugin # Local data begin - file = File.new( path, File::RDONLY ) - data << "\n\n" << file.read + data << "\n\n" << File.read(path) rescue m.reply "Failed to read from local database file #{p}, skipping." end -- cgit v1.2.3