diff options
-rw-r--r-- | gentoo-data.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gentoo-data.rb b/gentoo-data.rb index c9be68e..08757bd 100644 --- a/gentoo-data.rb +++ b/gentoo-data.rb @@ -121,6 +121,18 @@ class GentooPlugin < Plugin emails << ', ' << maintainer.get_elements('email')[0].text.split('@')[0] end end + for project in herd.get_elements("maintainingproject") + res = @bot.httputil.get("http://www.gentoo.org/#{project.text}?passthru=1") + proj_xml = REXML::Document.new(res) + for dev in proj_xml.get_elements("/project/dev") + if emails.nil? + emails = '' + emails = dev.text + else + emails << ', ' << dev.text + end + end + end m.reply "(#{params[:herd]}) #{emails}" end end |