if a word is known as a nickname but the user has no location, treat as location

This commit is contained in:
jesopo 2019-09-17 15:06:13 +01:00
parent 92840f67ee
commit b362e7d760

View file

@ -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: