Skip to content
Browse files

quiz plugin: simplify local file loading

  • Loading branch information...
1 parent d42f27c commit 86c7392e11d95dac44924778d45284d976b42a79 @Oblomov Oblomov committed May 11, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 data/rbot/plugins/games/quiz.rb
View
3 data/rbot/plugins/games/quiz.rb
@@ -218,8 +218,7 @@ def fetch_data( m )
# 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

0 comments on commit 86c7392

Please sign in to comment.
Something went wrong with that request. Please try again.