aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-17 15:06:13 +0100
committerGravatar jesopo2019-09-17 15:06:13 +0100
commitb362e7d760c6f1954d1859b3c546184720967f1e (patch)
tree440431d53fc25ec4a2d0800f516e7051f9aeb07b /modules
parentdon'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.py3
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: