whoops.
parent
8759f3df64
commit
8a7dd58d5a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue