aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-07 10:59:24 +0100
committerGravatar jesopo2019-05-07 10:59:24 +0100
commit670f682c627bfe7ca9c7f5f28454b8b9438e1004 (patch)
treed242bb32b6d0a2a40f2af766baea8bc9bcd11621 /modules
parentDon't parse '/me's as commands (diff)
signature
Remove '"human"' key from location settings export - we dont use it and it's
using elements of 'location' that were removed
Diffstat (limited to 'modules')
-rw-r--r--modules/location.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/location.py b/modules/location.py
index 807fd33c..3e65346c 100644
--- a/modules/location.py
+++ b/modules/location.py
@@ -5,8 +5,7 @@ URL_OPENCAGE = "https://api.opencagedata.com/geocode/v1/json"
class Module(ModuleManager.BaseModule):
def on_load(self):
self.exports.add("set", {"setting": "location",
- "help": "Set your location", "validate": self._get_location,
- "human": lambda x: "%s, %s" % (x["city"], x["country"])})
+ "help": "Set your location", "validate": self._get_location})
def _get_location(self, s):
page = utils.http.request(URL_OPENCAGE, get_params={