From 896fbc5db1f9f61a4eaa31796d10a4f24a0659b0 Mon Sep 17 00:00:00 2001 From: Matthias H Date: Thu, 20 Feb 2014 02:20:15 +0100 Subject: [plugin] fixed chucknorris for 2.0 --- data/rbot/plugins/chucknorris.rb | 4 ++-- 1 file 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 -- cgit v1.2.3