diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/chucknorris.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/chucknorris.rb b/data/rbot/plugins/chucknorris.rb index 68c6dd54..42385ff3 100644 --- a/data/rbot/plugins/chucknorris.rb +++ b/data/rbot/plugins/chucknorris.rb @@ -10,9 +10,9 @@ class ChuckNorrisPlugin < Plugin # Loadez les factes def initialize if path = find_facts_file('chucknorris.yml.gz') - fyml = Zlib::GzipReader.open(path) + fyml = Zlib::GzipReader.open(path).read elsif path = find_facts_file('chucknorris.yml') - fyml = open(path) + fyml = open(path).read else raise "Error: Couldn't find chucknorris.yml[.gz]" end |