summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/search.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-06 16:56:27 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-06 16:56:27 +0000
commitf5abcb7eff07f436904ad5d88c0651e197c5914c (patch)
tree0e0aecb744d81b688df20524a85637ec8910de2c /data/rbot/plugins/search.rb
parentcf804763ed6377010257f73effd32a37969ad604 (diff)
dict plugin: options to set number of hits and first_pars which will be displayed, similar to the ones found in search
Diffstat (limited to 'data/rbot/plugins/search.rb')
-rw-r--r--data/rbot/plugins/search.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/rbot/plugins/search.rb b/data/rbot/plugins/search.rb
index a10853bf..becfafc2 100644
--- a/data/rbot/plugins/search.rb
+++ b/data/rbot/plugins/search.rb
@@ -74,6 +74,8 @@ class SearchPlugin < Plugin
first_pars = params[:firstpar] || @bot.config['google.first_par']
+ return unless first_pars > 0
+
Utils.get_first_pars urls, first_pars, :http_util => @bot.httputil, :message => m
end