mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fixed a wrong return from search_player with quiet=True. Fixes a traceback when using the find command to search for a player *me or *self.
This commit is contained in:
parent
143df2a793
commit
02ba1c0695
1 changed files with 1 additions and 1 deletions
|
|
@ -414,7 +414,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
|||
if isinstance(searchdata, basestring):
|
||||
# searchdata is a string; wrap some common self-references
|
||||
if searchdata.lower() in ("me", "self",):
|
||||
return self.player
|
||||
return [self.player] if quiet else self.player
|
||||
|
||||
results = self.player.__class__.objects.player_search(searchdata)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue