diff options
-rw-r--r-- | data/rbot/plugins/dictclient.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/data/rbot/plugins/dictclient.rb b/data/rbot/plugins/dictclient.rb index d7e5091c..34276dad 100644 --- a/data/rbot/plugins/dictclient.rb +++ b/data/rbot/plugins/dictclient.rb @@ -17,6 +17,11 @@ # requires Ruby/DICT <http://www.caliban.org/ruby/ruby-dict.shtml> begin require 'dict' + class ::DICTError + def initialize(msg, code = 1) + super(msg) + end + end rescue LoadError raise LoadError, "Ruby/DICT not found, grab it from http://www.caliban.org/ruby/ruby-dict.shtml" end |