diff options
-rw-r--r-- | data/rbot/plugins/dictclient.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 <http://www.caliban.org/ruby/ruby-dict.shtml> -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' |