summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2014-03-25 10:36:48 +0100
committerRobert Gerus <arachnist@i.am-a.cat>2014-03-25 10:36:48 +0100
commit4e0b646cea0e960bc14892eb978782c3e2e4d3d4 (patch)
tree7c21ce0c6f59e2bb9364834b81a96b692cb30387
parent42d043a5435311188a300ea22c7ea09dd8172894 (diff)
downloadrepost-4e0b646cea0e960bc14892eb978782c3e2e4d3d4.tar.gz
repost-4e0b646cea0e960bc14892eb978782c3e2e4d3d4.tar.bz2
repost-4e0b646cea0e960bc14892eb978782c3e2e4d3d4.tar.xz
repost-4e0b646cea0e960bc14892eb978782c3e2e4d3d4.zip
more small fixes.
-rw-r--r--plugins/scrape.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/scrape.rb b/plugins/scrape.rb
index 7bcf777..1d194a7 100644
--- a/plugins/scrape.rb
+++ b/plugins/scrape.rb
@@ -45,7 +45,7 @@ Client.register_trigger("PRIVMSG") do |msg|
url = Digest::MD5.hexdigest(word)
end
- title = Nokogiri::HTML(open(word).read(10240)).title().delete!('\n')
+ title = Nokogiri::HTML(open(word).read(10240)).title().delete('\n')
Scrape::Link.create(
:url => url,
@@ -59,5 +59,5 @@ Client.register_trigger("PRIVMSG") do |msg|
end
end
- Client.privmsg(msg[:params][0], Config[:scrape][:title_prefix] + titles.join(' ')) if not titles.count < 1
+ Client.privmsg(msg[:params][0], Config[:scrape][:title_prefix] + titles.join(' ')) if not titles.count == 0
end