From 180b5332de8bde762829471cb3d0ff23274db498 Mon Sep 17 00:00:00 2001 From: Robert Gerus Date: Mon, 10 Mar 2014 09:11:56 +0100 Subject: [PATCH] brainfart #2 --- plugins/scrape.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/scrape.rb b/plugins/scrape.rb index 0479e9c..9fd8d8c 100644 --- a/plugins/scrape.rb +++ b/plugins/scrape.rb @@ -7,7 +7,7 @@ include EventMachine::IRC::Commands DataMapper.setup(:default, Config[:scrape][:db]) module Scrape - def download(uri) + def self.download(uri) ext = "." + word.sub(/.*[.]([^.]*)/, '\1') if word.match(/[^.]+[.][^.]+/) content = open(word).read md5 = Digest::MD5.hexdigest(content)