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