diff options
author | Mark Loeser <halcy0n@gentoo.org> | 2008-06-09 21:31:18 -0400 |
---|---|---|
committer | Mark Loeser <halcy0n@gentoo.org> | 2008-06-09 21:31:18 -0400 |
commit | 6146218377d43b37fb79c6ad3a2c30b1699d792f (patch) | |
tree | d1dddc6726cb2a398f6946aa01f396cb34d41a62 /gentoo-data.rb | |
parent | Always make sure to validate CP and exit if needed. (diff) | |
download | rbot-gentoo-6146218377d43b37fb79c6ad3a2c30b1699d792f.tar.gz rbot-gentoo-6146218377d43b37fb79c6ad3a2c30b1699d792f.tar.bz2 rbot-gentoo-6146218377d43b37fb79c6ad3a2c30b1699d792f.zip |
Now follow maintainingproject tag
Diffstat (limited to 'gentoo-data.rb')
-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 |