summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorMatthias H <apoc@sixserv.org>2014-02-20 02:20:15 +0100
committerMatthias H <apoc@sixserv.org>2014-02-20 02:20:15 +0100
commit896fbc5db1f9f61a4eaa31796d10a4f24a0659b0 (patch)
tree06825595eb508bf11e9b92d634105c809291d683 /data/rbot
parent91fd502e853ce67749a548fe5f339f66d65c5fb5 (diff)
[plugin] fixed chucknorris for 2.0
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/chucknorris.rb4
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