Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

quiz plugin: simplify local file loading

  • Loading branch information...
commit 86c7392e11d95dac44924778d45284d976b42a79 1 parent d42f27c
@Oblomov Oblomov authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.