if a word is known as a nickname but the user has no location, treat as location
This commit is contained in:
parent
92840f67ee
commit
b362e7d760
1 changed files with 1 additions and 2 deletions
|
@ -32,8 +32,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
target_user = event["server"].get_user(event["args_split"][0])
|
target_user = event["server"].get_user(event["args_split"][0])
|
||||||
location = self._user_location(target_user)
|
location = self._user_location(target_user)
|
||||||
if location == None:
|
if location == None:
|
||||||
raise utils.EventError("%s doesn't have a location set"
|
location = event["args_split"][0]
|
||||||
% target_user.nickname)
|
|
||||||
else:
|
else:
|
||||||
nickname = target_user.nickname
|
nickname = target_user.nickname
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue