From 8a7dd58d5a0f8cf2280bfa61472b5257d565b87a Mon Sep 17 00:00:00 2001 From: Robert Gerus Date: Tue, 25 Mar 2014 05:45:52 +0100 Subject: [PATCH] whoops. --- plugins/commands/gentoo-bugs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/commands/gentoo-bugs.rb b/plugins/commands/gentoo-bugs.rb index d3dff33..b8d623e 100644 --- a/plugins/commands/gentoo-bugs.rb +++ b/plugins/commands/gentoo-bugs.rb @@ -4,7 +4,7 @@ require 'nokogiri' Client.register_command("bug") { |args| if args[0] =~ /^[0-9]+$/ then doc = Nokogiri::HTML(Net::HTTP.get(URI(Config[:commands][:bug][:url] + args[0]))) - [Config[:commands][:bug][:url], args[0], doc.title().delete!('\n'), doc.xpath('//span[@id="static_bug_status"]').inner_text.split].join(' ') + [Config[:commands][:bug][:url] + args[0], doc.title().delete!('\n'), doc.xpath('//span[@id="static_bug_status"]').inner_text.split].join(' ') else "invalid bug url" end