diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-05-11 16:20:18 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-05-16 17:09:31 +0200 |
commit | 86c7392e11d95dac44924778d45284d976b42a79 (patch) | |
tree | b87c1ce85b899cb088af07865e27d88138945edd /data/rbot/plugins/games | |
parent | d42f27ccbafc1d019656a1be1f93b7b24e5e21ee (diff) |
quiz plugin: simplify local file loading
Diffstat (limited to 'data/rbot/plugins/games')
-rw-r--r-- | data/rbot/plugins/games/quiz.rb | 3 |
1 files changed, 1 insertions, 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 |