dictclient: monkeypatch DICTError
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 14 Oct 2010 08:15:47 +0000 (10:15 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 14 Oct 2010 08:15:52 +0000 (10:15 +0200)
commit0de1116a4d27cfdb2a0d4e8df00f16527e1566bd
treee7838ac8c9990ad56ec6290ea718dbf3af2370b9
parente327a8c418759208a6cd0cab974737af6d1897eb
dictclient: monkeypatch DICTError

The Ruby/DICT library is so tightly coupled with the rdict client that
its errors exit on initialize, instead of letting the lib user do that.
This makes those errors untrappable from the code.

Fix by monkeypatching DICTError to just act like the other exceptions in
Ruby.
data/rbot/plugins/dictclient.rb