aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-08-10 17:00:15 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-08-10 17:00:15 +0000
commit7b03eeee1ba0a7d7eb01812397d4d0e55d636f90 (patch)
tree82b8db6f1b0c0e3d2c46b30501c11d119b8db3ed
parentAlways thread. (diff)
downloadrbot-gentoo-7b03eeee1ba0a7d7eb01812397d4d0e55d636f90.tar.gz
rbot-gentoo-7b03eeee1ba0a7d7eb01812397d4d0e55d636f90.tar.bz2
rbot-gentoo-7b03eeee1ba0a7d7eb01812397d4d0e55d636f90.zip
Fix bug #234290, include who is noted as way.
-rw-r--r--gentoo-data.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/gentoo-data.rb b/gentoo-data.rb
index 648d150..1531dbb 100644
--- a/gentoo-data.rb
+++ b/gentoo-data.rb
@@ -93,8 +93,13 @@ class GentooPlugin < Plugin
end
def devaway(m, params)
- res = @bot.httputil.get("http://dev.gentoo.org/devaway/index-csv.php?who=#{params[:dev]}")
- m.reply "#{res}"
+ dev = params[:dev]
+ res = @bot.httputil.get("http://dev.gentoo.org/devaway/index-csv.php?who=#{dev}")
+ if res.length > 0 then
+ m.reply "#{dev}: #{res}"
+ else
+ m.reply "#{dev} has no devaway!"
+ end
end
def initialize