aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-06-06 00:37:25 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-06-06 00:37:25 +0000
commit0fd30ce93eeb99c48a615192680aac695bced525 (patch)
tree04d47ebd22e336c3c6b70c25159ca2291afd32c0 /gentoo-data.rb
parentImplement rdep and ddep. (diff)
downloadrbot-gentoo-0fd30ce93eeb99c48a615192680aac695bced525.tar.gz
rbot-gentoo-0fd30ce93eeb99c48a615192680aac695bced525.tar.bz2
rbot-gentoo-0fd30ce93eeb99c48a615192680aac695bced525.zip
Change the max length logic to match the old TCL. 400 chars is the limit.
Diffstat (limited to 'gentoo-data.rb')
-rw-r--r--gentoo-data.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gentoo-data.rb b/gentoo-data.rb
index e9f3fc6..04d444c 100644
--- a/gentoo-data.rb
+++ b/gentoo-data.rb
@@ -194,7 +194,7 @@ class GentooPlugin < Plugin
packages = @bot.httputil.get(url+cp).split("\n")
if packages.length == 0
m.reply "#{response_prefix(m)}No packages have a reverse #{type} on #{cp}."
- elsif packages.length > 5
+ elsif packages.join(' ').length > 400
m.reply "#{response_prefix(m)}Too many packages have reverse #{type} on #{cp}, go to #{url+cp} instead."
else
m.reply "#{response_prefix(m)}Reverse #{type} for #{cp}: #{packages.join(' ')}"