From ceee0a64f7fa05218ef1c61105bcb2b1f1649a81 Mon Sep 17 00:00:00 2001 From: GLolol Date: Sun, 23 Nov 2014 18:48:34 -0800 Subject: [PATCH] Dict: update dictionary names since dict.org has changed them --- plugins/Dict/plugin.py | 4 ++-- plugins/Dict/test.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Dict/plugin.py b/plugins/Dict/plugin.py index 3eed6de64..9e5ec6f84 100644 --- a/plugins/Dict/plugin.py +++ b/plugins/Dict/plugin.py @@ -130,7 +130,7 @@ class Dict(callbacks.Plugin): def synonym(self, irc, msg, args, words): """ [ ...] - Gets a random synonym from the Moby Thesaurus (moby-thes) database. + Gets a random synonym from the Moby Thesaurus (moby-thesaurus) database. If given many words, gets a random synonym for each of them. @@ -142,7 +142,7 @@ class Dict(callbacks.Plugin): except socket.error as e: irc.error(utils.web.strError(e), Raise=True) - dictionary = 'moby-thes' + dictionary = 'moby-thesaurus' response = [] for word in words: definitions = conn.define(dictionary, word) diff --git a/plugins/Dict/test.py b/plugins/Dict/test.py index 983bf4688..2ec07c3cf 100644 --- a/plugins/Dict/test.py +++ b/plugins/Dict/test.py @@ -38,7 +38,7 @@ class DictTestCase(PluginTestCase): self.assertNotError('dict flutter') self.assertNotRegexp('dict web1913 slash', 'foldoc') self.assertError('dict ""') - self.assertRegexp('dict eng-fra school', 'école') + self.assertRegexp('dict fd-eng-fra school', 'école') def testDictionaries(self): self.assertNotError('dictionaries')