From e3c929ff7f3e2491e7718e1da817d9de83b7bf1b Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 15 Feb 2009 22:43:44 +0100 Subject: dictclient: put the Ruby/DICT URL in the LoadError message This should help people find the right package. --- data/rbot/plugins/dictclient.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'data/rbot/plugins') diff --git a/data/rbot/plugins/dictclient.rb b/data/rbot/plugins/dictclient.rb index 903b3f1e..5b3bc631 100644 --- a/data/rbot/plugins/dictclient.rb +++ b/data/rbot/plugins/dictclient.rb @@ -15,7 +15,11 @@ # requires Ruby/DICT -require 'dict' +begin + require 'dict' +rescue LoadError + raise LoadError, "Ruby/DICT not found, grab it from http://www.caliban.org/ruby/ruby-dict.shtml" +end class ::String # Returns a new string truncated to length 'to' -- cgit v1.2.3