aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-30 10:27:50 +0100
committerGravatar jesopo2018-09-30 10:27:50 +0100
commit7ab89481013111b56ebe1875290883dd27c58d67 (patch)
tree8e517c8beac98a810e8c949bd531f3d256e18268
parentUpdate modules/signals.py to use the new Config "system" (diff)
signature
Fix piece of modules/define.py._get_definition( that was accepting a word or an
event.
-rw-r--r--modules/define.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/define.py b/modules/define.py
index 57b3a762..0b8723a9 100644
--- a/modules/define.py
+++ b/modules/define.py
@@ -12,8 +12,6 @@ class Module(ModuleManager.BaseModule):
_last_called = 0
def _get_definition(self, word):
- word = event["args"] if "args" in event else event
-
page = Utils.get_url(URL_WORDNIK % word, get_params={
"useCanonical": "true", "limit": 1,
"sourceDictionaries": "wiktionary", "api_key": self.bot.config[