diff options
| author | 2019-09-17 15:06:13 +0100 | |
|---|---|---|
| committer | 2019-09-17 15:06:13 +0100 | |
| commit | b362e7d760c6f1954d1859b3c546184720967f1e (patch) | |
| tree | 440431d53fc25ec4a2d0800f516e7051f9aeb07b /modules | |
| parent | don't die when channel.topic_setter is null (diff) | |
| signature | ||
if a word is known as a nickname but the user has no location, treat as location
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/weather.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/weather.py b/modules/weather.py index 2b2d67ac..df246690 100644 --- a/modules/weather.py +++ b/modules/weather.py @@ -32,8 +32,7 @@ class Module(ModuleManager.BaseModule): target_user = event["server"].get_user(event["args_split"][0]) location = self._user_location(target_user) if location == None: - raise utils.EventError("%s doesn't have a location set" - % target_user.nickname) + location = event["args_split"][0] else: nickname = target_user.nickname else: |
