summaryrefslogtreecommitdiffstats
path: root/plugins/commands/sjp.rb
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2015-04-15 21:15:02 +0200
committerRobert Gerus <arachnist@i.am-a.cat>2015-04-15 21:15:02 +0200
commitd5d6f7f12a1235ae5d5649978e0b53d4482be08b (patch)
tree82e345af659a83d416142a11f2578192de780750 /plugins/commands/sjp.rb
parent196d57ffd795716acb9a965ddb394cb1b1922e2b (diff)
downloadrepost-d5d6f7f12a1235ae5d5649978e0b53d4482be08b.tar.gz
repost-d5d6f7f12a1235ae5d5649978e0b53d4482be08b.tar.bz2
repost-d5d6f7f12a1235ae5d5649978e0b53d4482be08b.tar.xz
repost-d5d6f7f12a1235ae5d5649978e0b53d4482be08b.zip
Bombs away
Diffstat (limited to 'plugins/commands/sjp.rb')
-rw-r--r--plugins/commands/sjp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/commands/sjp.rb b/plugins/commands/sjp.rb
index a4dd508..6ccd023 100644
--- a/plugins/commands/sjp.rb
+++ b/plugins/commands/sjp.rb
@@ -2,6 +2,6 @@ require 'net/http'
require 'nokogiri'
Client.register_command("sjp") { |args|
- doc = Nokogiri::HTML(Net::HTTP.get(URI(Config[:commands][:sjp][:url] + args[0])))
+ doc = Nokogiri::HTML(Net::HTTP.get(URI(Config.lookup("commands::sjp::url") + args:0)))
doc.xpath('//ul[@id="listahasel"]/li/div/div').inner_text
}